• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

A very common behavior : cut'n'paste in the wysiwyg editor some paragraphs from a web browser or from a word document.

I'm not talking about complex things. For example : a small paragraph in a word document. No pictures, "normal" style, something very common.

Once pasted, things appear in the editor as if evrything is ok. Then I save. Huh ! Things disappeared, strange characters appear, new lines are inserted, etc... If I edit again, I've lost formatting things. I CAN UNDERSTAND THAT and I know the company that sponsored the wysiwyg asked for a simplified editor that supports what twikiML supports.

BUT : the page can be really polluted by <fonts...> etc... html code, making it very difficult to read with the regular editor. I some filtering is done : 1) the user shoud be warned that maybe he's going to loose things and 2) all and other HTML formatting things should be filtered as well.

-- Michael Buffa

You might want to try the procedure I offer on Item1019 - Crawford is probably right in thinking that my change is too aggressive to allow it to pass the tests, but at least it shows the kind of thing that needs to be done.

-- MC

This is a difficult one. If we start stripping font tags, there is a high risk that we will strip the wrong thing and end up losing some critical formatting. I decided on what to handle purely by examining the round trip i.e. TML document -> HTML -> edit -> TML, so the only tags that are "properly" handled are those covered in those two transformations. Very deliberately, I left everything else alone. Otherwise, a user would never be able to change the font in their topic using the WYSIWYG editor, even in source-edit mode.

It would be good to do something about this, but it isn't going to happen in the near future.

CC


Undeferred, post Dakar CC

Duplicate of Item944

CC

ItemTemplate
Summary Cut'n' paste from HTML browser, Word, Wordpad etc... could be better
ReportedBy MichelBuffa
Codebase

SVN Range

AppliesTo Extension
Component WysiwygPlugin
Priority Enhancement
CurrentState No Action Required
WaitingFor

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-03-27 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback