Hi all again!
I'm having a problem when the editor load the text that have a self close tag like an anchor.
How to reproduce this error? Here:
Example without error:
1.- go to http://nightly.ckeditor.com/4990/_samples/api.html
2.- Fill the bottom textarea with:
<h2>Test</h2><p>This is some <a name="anchor_good_element"></a>HTML</p>
3.- Press "Set editor contents" button
In this example, CKEditor parse the element "a" as an anchor.
Example with error:
1.- go to http://nightly.ckeditor.com/4990/_samples/api.html
2.- Fill the bottom textarea with:
<h2>Test</h2><p>This is some <a name="anchor_bad_element"/>HTML</p> <h2>Test2</h2><p>This is some HTML</p>
3.- Press "Set editor contents" button
In this example, CKEditor has a wrong parse of the element "a" and adds one element "a" (anchor) for each element "p" make hidden all text on the nexts elements "p". I'm thinking that, CKEditor thinks that the element "a" never closes.
When I retrieve the text to set into CKEditor, maybe has the element "a" self closed and all the next elements "p" are hidden it's text.
how can I add the parse for self-close "a" tag and parse it like anchor?
I Hope you understand me and help me
Thanks in advance
Regards Juan Pablo From Argentina
Re: Error when the text has an selfclose element - htmlparser?
Re: Error when the text has an selfclose element - htmlparser?
At core/htmlparser/element.js change it:
by
On the ckeditor.js (the "obfuscated" on the root directory) change it:
by
I tried it and it works well.
I continue testing this and other things.