I am using CKEditor for Drupal 7. In one article I inserted a picture with hot spots. I inserted the html code with ckeditor (full html modus, source view). Now I wanted to add tooltips to the polygons, so I tried to insert nested title tags:
<polygon opacity="0" points="228,543 222,451 76,515 298,924 470,924 471,915"><title>removed by ckeditor</title></polygon>
.
At first I thought it works fine but as soon as I reopened ckeditor and had a look at the source, the values of the title tags were all vanished. The title tags still there, but empty. I tried adding config.allowedContent = true;
in the advanced js configuration, but that didn't work.
The advanced content filter ist turned off in the configuration.
The html is invalid, CKeditor is for editing content. All content should be within the
<body>
tag. You are including the<title>
tag in the body when using it in CKeditor. This tag should only be used in the<head>
section of your html.I expect CKeditor is finding this code, identifying it as being misplaced/invalid and removing it automatically.
To expand on that a little, if you change your
<title>
tag to a<label>
or just a<p>
paragraph tag, that should be fine although it will render in the browser (not the tab/top of the browser which is what the title tag does).