Ticket #2256 (closed Bug: fixed)

Opened 6 years ago

Last modified 8 months ago

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

Reported by: Madferit 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

comment:1 Changed 6 years ago by w.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 6 years ago by w.olchawa

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

comment:3 Changed 8 months ago by Reinmar

  • Status changed from confirmed to closed
  • Resolution set to fixed

Expired.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy