Developer
Supported
Expresso
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5
Back to this add-on's main page
View Other Add-ons From PutYourLightsOn
Text pasted from Word loses formatting [resolved]
General
Ned
|
Posted: 23 May 2011 11:17 AM |
|
|
|
We’re just starting to use expresso for a site, and one of the content authors noticed that when pasting into Expresso from Word some formatting is lost. Bold, italic and strikethrough drop out, and lists in Word are rendered in Expresso as text preceded by a bullet or number, rather than a ul or ol + li.
Pasting the same source document in the CKEditor demo (ckeditor.com/demo) preserves formatting and renders lists correctly. The demo page is the latest version of CKEditor; looks like Expresso uses 3.5. (Both running in same browser—FF 3.6.3. Document was created in Word 2007 on Windows XP.)
Is there some tweaks that can be made to Expresso configuration to improve pasting from Word, or is what I’m seeing due to differences in versions of CKEditor?
Thanks,
Neil
|
|
|
PutYourLightsOn
|
Posted: 24 May 2011 06:07 AM |
# 1
|
|
Developer
|
yes, Expresso pastes as plain text by default. this is important, especially when pasting from Word since otherwise a whole lot of ugly code is pasted along with the text. i would not recommend it, but you can disable forcing as plain text by changing line 135 in ft.expresso.php to:
forcePasteAsPlainText: false,
hope that helps
|
|
|
Ned
|
Posted: 24 May 2011 04:59 PM |
# 2
|
|
|
Great! Thanks for the quick reply. We’ll give it a try and decide whether this works best for us turned on or left off.
|
|
|
|