Opened 15 years ago

Last modified 15 years ago

#3419 confirmed Bug

Paste button not available after SetData function

Reported by: ambio Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: FCKeditor 2.6.4
Keywords: IE Cc:

Description

Hi,

After calling the SetData function, the paste buttons are not enabled (my clipboard has data) in internet explorer (tested in IE7). Other browser does not have this problem. How can I solve this problem?

Here is the code of my test:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title></title>
    <script type="text/javascript" src="/fckeditorLatestBuild/fckeditor.js"></script>
    <script type="text/javascript">
        window.onload = function() {
            var oFCKeditor1 = new FCKeditor('MyTextarea1');
            oFCKeditor1.BasePath = "/fckeditorLatestBuild/";
            oFCKeditor1.ReplaceTextarea();
            setTimeout("myClick()",5000);
        }
        
        function myClick() {
		var oEditor = FCKeditorAPI.GetInstance('MyTextarea1');
		oEditor.SetData("<p>hello world</p>");
		oEditor.Focus();
    	}
    </script>
</head>

<body>
    <form id="form1"">
    <div>
          <textarea id="MyTextarea1" name="MyTextarea"></textarea>
    </div>
    </form>
</body>
</html>

Thanks in advance!

Change History (1)

comment:1 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Keywords: Confirmed IE added
Priority: HighNormal

The problem seems to be that it doesn't recognize properly that the focus in in the editor (one of those issues in IE with focus/active), just clicking in the body enables the buttons for me.

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