• 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.

Item4507: Copy pasting text into TMCE (Tiny MCE) copied with some formatting ends up with very large font

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Urgent Closed   minor  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Copy pasting text into TMCE (Tiny MCE) from e.g. a URL line ends up with very large font.

And additionally the text that follows and the entire left bar becomes very small.

I have tried to reproduce it but I am not sure how I ended up like this.

See Item4506 for a visual impression of the issue.

I am using IE6 on Windows XP as I write this and it was also the browser I used when I got the problem.

-- TWiki:Main/KennethLavrsen - 26 Aug 2007

Trying to reproduce Item4506

Yes. You simply view a bug item and copy the text from the headline of a bug item and paste it into an open TMCE edit window and you end up with this huge text. And I see no way for a normal user to figure out what happens.

-- KennethLavrsen - 26 Aug 2007

As I copy the above signature into this item the browser jumps up to where the large text begins like reported in Item4506

-- KennethLavrsen - 26 Aug 2007

I have not tried to fix this topic.I want it to be very clear that this is a showstopper bug.

-- TWiki:Main.KennethLavrsen - 26 Aug 2007

The plugin tries hard to retain the HTML you enter, and HTML pasted from a TWiki topic is retained as far as possible. This includes spantags that resize fonts, and font tags.

I have made it filter out font tags, and perform more agressive filtering on spans, but it's a balancing act; remove too much HTML, and it is not WYSIWYG, too little and you can't generate useful TML frown


Pasting some content from another topic:

A list to coordinate work on TinyMCEContrib

  • 1. Pasting in HTML adds <br> in the text instead of <p> which kills the translator
    • the txer tries to respect the <br>s, which breaks the TWiki constructs
    • the editor may be controllable to do this better (see also 6)
  • 2. Organisation/placement/L&F of the toolbar could all be better
    • are all the buttons really needed?
  • 3. Translations
    • TinyMCE already has translation files for several languages, we need to select the right one based on the setup in TWiki
  • 4. Help. The help is currently TinyMCE ? only - it doesn't cover the "TWikification"
  • 5. Resizing the edit window. Crawford had to disable the pattern skin controls. Can we improve this?
  • 6. There's an argument for a JS "cleanup tool" that removes things like the nasty font settings.
    • It may be possible to configure the existing cleanup engine in TinyMCE to do this job
OK, that worked. Closing.


Summary Copy pasting text into TMCE (Tiny MCE) copied with some formatting ends up with very large font
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~twiki4
SVN Range TWiki-4.2.0, Fri, 24 Aug 2007, build 14614
AppliesTo Extension
Component TinyMCEPlugin
Priority Urgent
CurrentState Closed

Checkins TWikirev:14641 TWikirev:14650
TargetRelease minor

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-08-28 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback