alohaeditor / Aloha-Editor

Aloha Editor is a JavaScript content editing library
http://www.alohaeditor.org
Other
2.46k stars 535 forks source link

Make it work with XHTML5 documents (content type application/xhtml+xml and no DOCTYPE) #1266

Open mildred opened 9 years ago

mildred commented 9 years ago

When a page is loaded as XHTML, script execution is a little different. The most obvious is that document.write is not available, but there are a few catches here and there that makes Aloha not perform as well as if the document was served with text/html content type.

Jotschi commented 9 years ago

To which AE version are you refering to?

mildred commented 9 years ago

The dev branch mostly. The fix are quite simple there, see my repository.

I however experience some issues on the hollowing-mad as well (commit branch7db577f16b5477ca4dc5b4dfb3813e1bcdc010f2). I haven't looked up further into this issue, but the symptom is that whenever I try to apply some formatting to selected text it doesn't work (although there is some change, mostly to the cursor).