internet-explorertwitter-bootstrapfine-uploadercleditor

IE HTML1114 Error with custom CLeditor button


I am using CLeditor, Fineuploader, and Bootstrap to create a custom button that pops up a more advanced file upload Modal. But everytime I launch the modal I get an error and I have no idea how to fix it. Basically the whole browser freezes.

HTML1114: Codepage unicode from (UNICODE byte order mark) overrides conflicting codepage windows-1252 from (11) 

I found what was going wrong this warning still displays but it carries on normally.

So CLeditor has a terrible design where it runs the command on custom buttons on click rather than waiting for the buttonClick callback to be run this created a situation where IE was calling getRange(editor).pasteHTML(value) with a value of undefined to mitigate it I just added my button name to the big if else if in the buttonClick event handler

// Image uploader
else if (buttonName === "uploadImage") {
  return;
}

// All other buttons AVOID THIS NONSENSE FOR CUSTOM BUTTONS!!!
else if (!execCommand(editor, data.command, data.value, data.useCSS, buttonDiv)) {
   return false;
}

Solution

  • Are you sure the outputted header for "cleditor wysiwyg" (if I understand the code correct) is

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="x-ua-compatible" content="IE=Edge"/>
    

    IE=Edge should be the very først line in <head>. Sounds very much like IE is switching back to quirksmode. See more detailed explanation explanation here.