Hi.
We're developing full Ajax portal using your FCK editor as user input for html components. As we don’t want users to ruin our javascript/html we must allow only plain text or limited tags in html editor box.
So we configured:
FCKConfig.ForcePasteAsPlainText = true ;
Now each time user pastes, it opens popup with input textarea. Now that doesn’t suit with our Ajax logic and is really bad for usability. Some versions ago there was possibility to paste directly into FCK editor from word and HTML cleaner or so removed all tags. Is there possibility to turn this feature back on and in what use cases or browsers it did fail?
Meny thanks for the great tool
Thu, 11/01/2007 - 16:34
#1
Re: Paste as plain text workaround
I just learned that it's mainly a FireFox problem. IE doesn't force said popup. I searched this forum and I got the impression that the FCKEditor developers want to fix more serious bugs before addressing this usability issue.
Could the developers chime in and advise when the Firefox popup can be stopped?
BTW I agree the FCKEditor is a great tool. To date nothing else comes close.
Thanks,
Mark
Re: Paste as plain text workaround
FCKConfig.AutoDetectPasteFromWord = true;
FCKConfig.CleanWordKeepsStructure = false;
FCKConfig.ForcePasteAsPlainText = false;
I too would prefer not to have the popup at all - just have it strip out all the <font>, <span>, etc. leaving me with only the tags that I am allowing in my own customised toolbar, namely 'Bold','Italic','Underline','UnorderedList'.
I notice also that the FCKConfig.CleanWordKeepsStructure tends to put in <div></div> for empty paragraphs whereas I'd prefer it to use the same setting as FCKConfig.EnterMode - namely just a <br />
Chris.
Re: Paste as plain text workaround
I want to copy Text (from Word or other Sources like Browser etc.) in the FCKeditor as plain Text.
my config:
FCKConfig.ForcePasteAsPlainText = true ;
...
FCKConfig.ToolbarSets["mytoolbar"] = [
['Source','-','Bold','Italic','Underline','-','JustifyLeft','JustifyCenter','JustifyRight', 'FontFormat'],
'/',
['Cut','Copy','Paste','RemoveFormat','-','Undo','Redo','-','OrderedList','UnorderedList','Outdent','Indent','-','Subscript','Superscript','-','Link','Unlink'],
'/',
['Table','Blockquote','SpecialChar','About']
] ;
...
FCKConfig.Keystrokes = [
[ CTRL + 65 /*A*/, true ],
[ CTRL + 67 /*C*/, true ],
[ CTRL + 70 /*F*/, true ],
[ CTRL + 83 /*S*/, true ],
[ CTRL + 84 /*T*/, true ],
[ CTRL + 88 /*X*/, true ],
[ CTRL + 86 /*V*/, 'Paste' ],
[ CTRL + 45 /*INS*/, true ],
...
But always when i want to paste something with Crtl-V a popup appears. How can i disable this popup and just paste like in other programms?
Have i something wrong in my config oder how can i disable this popup? I thougt it was posible in a earlyer version.
Re: Paste as plain text workaround
Re: Paste as plain text workaround
The root of the problem is the browser here. While IE offers ways to retrieve the clipboard data with JavaScript, Firefox don't. This is a security "feature" into the browser (like they call it)... a limitation for me.
So, as we can't play with the clipboard, the only option we have is showing a dialog with a textarea. I'm not happy with that also, but we can't workaround this problem.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: Paste as plain text workaround
Re: Paste as plain text workaround
Re: Paste as plain text workaround
That's the idea in http://dev.fckeditor.net/ticket/1427
It still needs someone to code it.