#2269: IE7: ForcePasteAsPlainText does not work after setting
FCKeditor.EditorDocument.designMode to 'on'
-----------------------+----------------------------------------------------
  Reporter:  Madferit  |       Owner:               
      Type:  Bug       |      Status:  new          
  Priority:  Normal    |   Milestone:               
 Component:  General   |     Version:  FCKeditor 2.6
Resolution:            |    Keywords:               
-----------------------+----------------------------------------------------
Old description:

> If I set FCKeditor.EditorDocument.designMode = 'on' ForcePasteAsPlainText
> does not work
>

> {{{
> 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>
>     <font color="Red">Copy & paste me</font>
>     <script type="text/javascript">
>         var oFCKeditor = new FCKeditor('FCKeditor1');
>         oFCKeditor.BasePath = "fckeditor/";
>         oFCKeditor.Create();
>
>         function FCKeditor_OnComplete(editorInstance)
>         {
>             editorInstance.EditorDocument.designMode = 'on';
>         }
>     </script>
> </body>
> </html>
>
> 2. Contents of 'fckeditor/' folder are default. Except
> FCKConfig.ForcePasteAsPlainText  = true ; in fckconfig.js
>
> 3. Copy & paste 'Copy & paste me text' - it is styled. Not plain text as
> expected
>
> Note: I use FCKeditor.EditorDocument.designMode to make editor readonly
> and editable.
>
> Browser: 7.0.5730.11
> FCKeditor: 2.6
> }}}

New description:

 If I set FCKeditor.EditorDocument.designMode = 'on' ForcePasteAsPlainText
 does not work

 '''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>
     <font color="Red">Copy & paste me</font>
     <script type="text/javascript">
         var oFCKeditor = new FCKeditor('FCKeditor1');
         oFCKeditor.BasePath = "fckeditor/";
         oFCKeditor.Create();

         function FCKeditor_OnComplete(editorInstance)
         {
             editorInstance.EditorDocument.designMode = 'on';
         }
     </script>
 </body>
 </html>
 }}}

 2. Contents of 'fckeditor/' folder are default. Except
 {{{FCKConfig.ForcePasteAsPlainText = true ;}}} in fckconfig.js

 3. Copy & paste 'Copy & paste me text' - it is styled. Not plain text as
 expected

 Note: I use FCKeditor.EditorDocument.designMode to make editor readonly
 and editable.

 Browser: 7.0.5730.11
 FCKeditor: 2.6

Comment (by w.olchawa):

 just cleaned the description a little bit

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2269#comment:1>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to