NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item8841 for copy changes for release 1.1.
You are here: Tasks Web>Item2183 (29 Nov 2009)

Item2183: Unable to center text with Wysiwyg editor

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension WysiwygPlugin KennethLavrsen
With the WysiwygPlugin and TinyMCE? editor, there is no way to center text, and the <center> tag is removed by the editor

Noted issue when using the SlideShowPlugin. Centering of text in title slides, etc. was lost after save.


It appears that the TML2HTML? code accepts the "CENTER" tag as valid for TinyMCE? . If I comment out the CENTER tag, then the tags are preserved, but I don't think that this is the correct solution.

-- GeorgeClark - 30 Sep 2009

  • <center> is deprecated, so it is correct to remove it from the list of acceptable tags. That fix has been committed.

  • <div align="center" ... The Wysiwyg plugin by default protects the div tag if the "align" attribute is present. however align= is also deprecated and the TinyMCE? editor appears to discard the entire div when it is present. Currently not yet fixed. Protecting the syntax with STICKYBITS doesn't resolve the issue.

  • <div style=text-align:center ... is supported by the TinyMCE? editor, so a change to the STICKYBITS field to protect div=align,style resolves the issue with this syntax. That change is being tested.

  • I have Unit tests for the three centering syntaxes,

Changes for the two <div> statements and the unit tests are committed to trunk, but not to release. This needs testing to make sure it doesn't interfere with anything else in Wysiwyg.


Committed to Release branch. Changing to waiting for release.

ItemTemplate edit

Summary Unable to center text with Wysiwyg editor
ReportedBy GeorgeClark
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
WaitingFor KennethLavrsen
Checkins Foswikirev:5228 Foswikirev:5308 Foswikirev:5310 Foswikirev:5311 Foswikirev:5354 Foswikirev:5355 Foswikirev:5356 Foswikirev:5358
TargetRelease patch
ReleasedIn
Topic revision: r13 - 29 Nov 2009 - 20:24:13 - KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads