Tags:
create new tag
view all tags

SID-00740: How to preserve font size and color when editing?

Status: Answered Answered TWiki version: 4.3.2 Perl version: 5.8.8
Category: CategoryEditing Server OS: Redhat Enterprise 5.X, kernel 2.6.18-164.11.1.el5 Last update: 15 years ago

Hi,

I´m breaking my mind to find a way to edit a topic and preserve the font size and color when saving.

For example: When adding the next simple text, all format definitions are deleted when the topic is saved.

<p><span style="color:#FF0000;"><span style="font-size: small;">Alexander R Mendoza Luna</span></span><br /><span style="font-size: xx-small;">AAAA<br /></span></p>

After saving, I got something like this:

<p>Alexander R Mendoza Luna<br />AAAA</p>

See that all sets for color and font size disappeared.

Can you inform how can I bypass this issue and have that text updated regularly?

I know that I can modify style.css to update all my page, but I dont want that. I just want to modify one single group of text.

Thanks for any information.

Regards.

Marcelo

-- LuisMarceloAchite - 2010-02-05

Discussion and Answer

The WYSIWYG editor makes a TML -> HTML -> TML round trip translation. Some formatting gets lost in the process. You can tell the editor to leave a block of text alone by enclosing it in <sticky> ... </sticky> tags. Details at TinyMCEPlugin.

-- PeterThoeny - 2010-02-06

Excellent, excellent, excellent. You saved my day! Thanks for your comments. Regards. Marcelo

-- LuisMarceloAchite - 2010-02-08

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title How to preserve font size and color when editing?
SupportCategory CategoryEditing
TWiki version 4.3.2
Server OS Redhat Enterprise 5.X, kernel 2.6.18-164.11.1.el5
Web server Apache 2.0.63
Perl version 5.8.8
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-02-08 - LuisMarceloAchite
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.