Opened 12 years ago
Closed 12 years ago
#10433 closed Bug (wontfix)
editor.insertHtml and contenteditable bug
Reported by: | Roberto | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Read-only | Version: | 4.1.2 |
Keywords: | Cc: |
Description
Hello everybody. I found a strage bug.
Look at this demo website:
http://media.dday.it/roby/editor2/samples/
I'm trying to create an impagination system where I add some templates using editor.insertHtml.
Every div in mypage has contenteditable=false but the paragraph are contenteditable=true.
You can add a template using the button at the end of the page. If you try to insert a picture in a paragraph (editable) using the second button you have a an error:
Uncaught TypeError: Cannot call method 'checkReadOnly' of undefined.
It looks like CKeditor is not looking at the <p> property but it follow the div contenteditable=false.
Editor does not handle nested editables at this point. Though, we're working on solution for that in #9764.