SID-00740: How to preserve font size and color when editing?
| Status: |
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
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.