Opened 16 years ago

Closed 11 years ago

#2256 closed Bug (fixed)

[IE] error when perfroming drag and drop with ForcePasteAsPlainText set to true

Reported by: Alexey Zuev Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.6
Keywords: IE Cc:

Description

When I set ForsePasteAsPlainText to true and drag and drop some content from the page to FCKeditor I get the following error:

htmlfile: Incompatible markup pointers for this operation.

It happens in fckeditorcode_ie.js on the following line:

FCKDomRange.prototype.MoveToSelection=function(){
    //...
   D.pasteHTML('<span id="'+E+'"></span>'); //error appears here
   //...
}

text is inserted but it is styled.

Steps to reproduce:

  1. html-file:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>FCKeditor - Sample</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="robots" content="noindex, nofollow">
    <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
</head>
<body>
    <form>
	<font color="Red">drag and drop me</font>
        <script type="text/javascript">
            var oFCKeditor = new FCKeditor('FCKeditor1');
            oFCKeditor.BasePath = "fckeditor/";
            oFCKeditor.Create();
        </script>
    </form>
</body>
</html>

  1. contents of 'fckeditor/' is default.

Except, FCKConfig.ForcePasteAsPlainText = true ; in fckconfig.js

  1. Drag and drop 'drag and drop me' text to FCKeditor

Note: couple of times I've got "Paste as Plain Text Dialog" as a result. But in most times it was described error. I didn't notice regularity here.

Browser: IE 7.0.5730.11 OS: Windows XP with SP2

Change History (3)

comment:1 Changed 16 years ago by Wojciech Olchawa

Keywords: Confirmed IE added

Confirmed in IE6 and IE7 with FCKeditor 2.6 and the current SVN version. Works OK with FF2.

comment:2 Changed 16 years ago by Wojciech Olchawa

Summary: IE7: error when perfroming drag and drop with ForcePasteAsPlainText set to true[IE] error when perfroming drag and drop with ForcePasteAsPlainText set to true

comment:3 Changed 11 years ago by Piotrek Koszuliński

Resolution: fixed
Status: confirmedclosed

Expired.

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