I want to disable autocreating of not closed parent elements.
Example: When user input the line
<li>test</li>
this line should remain unchanged. But ckeditor closes this element with ul tags:
<ul><li>test</li></ul>.
I've found the code that is responsible for this in js/ckeditor/_source/core/htmlparser/fragment.js at line 249:
When I change this code to:
editor begin to work as I want to.
However I don't like to change the original source code.
Can this be done without affecting the original files?
Example: When user input the line
<li>test</li>
this line should remain unchanged. But ckeditor closes this element with ul tags:
<ul><li>test</li></ul>.
I've found the code that is responsible for this in js/ckeditor/_source/core/htmlparser/fragment.js at line 249:
else if ( tagName in CKEDITOR.dtd.$listItem && currentName != tagName ) { parser.onTagOpen( tagName == 'li' ? 'ul' : 'dl', {}, 0, 1 );
When I change this code to:
else if ( tagName in CKEDITOR.dtd.$listItem && currentName != tagName ) { element.isOrphan = 1; break; }
editor begin to work as I want to.
However I don't like to change the original source code.
Can this be done without affecting the original files?