Hi,
Here's my editor configuration :
- enter et shift-enter mode are set to <div>
I create a sample text in Word 97. this text contains Bold, Italic, underline, a different fonts. I cut it and paste it into my editor.
1. The editor doesn't detect that the pasted text comes from Word. When using Word 2k+ the editor invites me to use the paste from Word feature.
2. the text pasted contains some undesired tags such as font face, font size and p. I don't want to use the p tags at all, the editor is configured to use div instead.
3. Selecting the whole text and pressing the button "Remove all format" doesn't do his job. I can't remove the bold text.
Here is a more explicit example :
Text pasted from Word 97 (source view in the editor) :
Now I push the button "Remove all format", the result is :
The editor didn't remove font tag, and I get an undesired tag p.
The result I want is :
Any idea to solve this problem ?
Thanks in advance and keep doing great job !!
Here's my editor configuration :
- enter et shift-enter mode are set to <div>
I create a sample text in Word 97. this text contains Bold, Italic, underline, a different fonts. I cut it and paste it into my editor.
1. The editor doesn't detect that the pasted text comes from Word. When using Word 2k+ the editor invites me to use the paste from Word feature.
2. the text pasted contains some undesired tags such as font face, font size and p. I don't want to use the p tags at all, the editor is configured to use div instead.
3. Selecting the whole text and pressing the button "Remove all format" doesn't do his job. I can't remove the bold text.
Here is a more explicit example :
Text pasted from Word 97 (source view in the editor) :
<div><font face="Arial" size="3"> <p>Ceci est un test</p> <b> <p>Ceci <i>est un</i> test</p> </b> <p>Ceci est un test</p> </font></div>
Now I push the button "Remove all format", the result is :
<div><font face="Arial" size="3"> <p>Ceci est un test</p> Ceci est un testCeci est un test</font></div>
The editor didn't remove font tag, and I get an undesired tag p.
The result I want is :
<div>Ceci est un test</div> <div>Ceci est un test</div> <div>Ceci est un test</div>
Any idea to solve this problem ?
Thanks in advance and keep doing great job !!

Re: Paste text from Word 97
FCKConfig.ForcePasteAsPlainText = true
But using this, I can't keep bold or underlined text if I wish through the Paste from Word popup.
Re: Paste text from Word 97
V3
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn