Opened 8 years ago

Last modified 8 years ago

#14892 confirmed Bug

[Edge Only] : CkEditor Bold/Italic/underline does not work. If we do not give <!DOCTYPE HTML> in the html page.

Reported by: Rohit Kumar Owned by:
Priority: Normal Milestone:
Component: File Browser Version: 4.5.2
Keywords: Edge Cc:

Description

Steps to reproduce

HTML Source Code : <!DOCTYPE HTML> <html>

<head>

<script src="https://code.jquery.com/jquery-2.2.4.js"></script> <script src="http://cdn.ckeditor.com/4.5.11/full/ckeditor.js"></script> <script src="http://cdn.ckeditor.com/4.5.11/full/adapters/jquery.js"></script>

<script> $(document).ready(function() {

$('#testCk').ckeditor();

}); </script> </head> <body> <textarea id="testCk"></textarea> </body> </html>

This works.

Remove DocType from html page. It does not work in edge browser only

Tried using Doctype config property. Still does not work.

Expected result

It should work in Edge even without Doctype declaration.

Actual result

It does not

Other details (Edge, Win 10,Full 4.5.11)

Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Keywords: Browser funtionality removed
Status: newconfirmed
Version: 4.5.114.5.2

Problem can be reproduced in Edge only starting from version 4.5.2 (when support for Edge was introduced).

Error is thrown in element.js, Line:626 and the message is Unable to get property 'specified' of undefined or null reference. It is thrown in part of code checking Quirks mode: this.$.attributes.getNamedItem("contentEditable").specified

When you don't specify doctype, browser should go into quirks mode. According to documentation the code used for quirks mode is correct - http://help.dottoro.com/ljgkbmnk.php, http://help.dottoro.com/ljiuhlep.php. On the other hand Edge doesn't support modes any more - https://msdn.microsoft.com/en-us/library/dn384051(v=vs.85).aspx so perhaps standard check should be performed here instead?

comment:2 Changed 8 years ago by Jakub Ś

#14908 was marked as duplicate.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy