Paste text into the event calendar editor

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/10/2011 4:23:57 AM
Gravatar
Total Posts 11

Paste text into the event calendar editor

Hi folks,

i think this problem is independent from any server installation, maybe it depends only on the mojoportal version. i am using version 2.2.8.6 MSSQL and i've found the following issue:

my customer tried to create a new event in the event calendar by writing his text in ms word and copy-paste it into the editor. after saving the event he saw something like that

<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 10]>

i think it's the result of interpreting ms word xml - but why?! imho the editor (i think it's tinyMCE here) should be able to filter this xml tags out of the text. with an inspect (firebug) i saw that every tag brace was escaped as html entity - maybe this filtering causes the error (tinyMCE isn't able to find xml because it's escaped).

is this a known bug, any help about that?!

br matt

3/10/2011 12:37:53 PM
Gravatar
Total Posts 18439

Re: Paste text into the event calendar editor

The editors have a special toolbar item that is for "Paste From Word". They are there to strip out the garbage markup that word adds. I don't think they are perfect, but you should train your users to use those toolbar items to paste from word, because normal paste will not clean that up.

Hope it helps,

Joe

3/11/2011 3:21:19 AM
Gravatar
Total Posts 11

Re: Paste text into the event calendar editor

thanks for help, joe :)

i will try this, hopefully this will solve the problem.

br matt

You must sign in to post in the forums. This thread is closed to new posts.