Fieldtype

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

     

You must be logged in to post.

Text pasted from Word loses formatting [resolved]

General

Ned
Ned

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
# 1
Developer
PutYourLightsOn

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:

forcePasteAsPlainTextfalse

hope that helps

Ned
# 2
Ned

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.

PutYourLightsOn
# 3
Developer
PutYourLightsOn

ok good luck!