Item9651: wysiwyg converts bold table content to table heads

Priority: Normal
Current State: Waiting for Release
Released In: 2.2.0
Target Release: minor
Applies To: Extension
Component: WysiwygPlugin
Branches: Item14323 master Item14288 Item14380 Item14537
Reported By: MichaelDaum
Waiting For:
Last Change By: CrawfordCurrie
When editing content using wysiwyg like this

| <b>bold font</b> |
| <b>bold font</b> |
| <b>bold font</b> |
| <b>bold font</b> |
| <b>bold font</b> |

you'll get

| *bold font* |
| *bold font* |
| *bold font* |
| *bold font* |
| *bold font* |

after save ... which is something different. Adding sticky to every cell of a large table is not feasible.

-- MichaelDaum - 09 Sep 2010

I'm not sure how we're supposed to fix this.

The TML representation of *bold font* can only be known as <strong>bold font</strong>, and vice versa.

I am not sure that we should complicate the TML transformation just to make TablePlugin happy.

Probably we should fix TablePlugin so that it doesn't make spurious bolded table cells, heading cells.

We will have to work towards translating <b> as <strong>, given that TinyMCE no longer natively supports non-XHTML1.0-strict elements (we keep it working with legacyoutput plugin).

But legacyoutput has its own cost (Eg. issues with pasting of bullet lists in gecko browsers).

-- PaulHarvey - 09 Sep 2010

The other option is to extend some work MichaelTempest did recently which allows WysiwygPlugin to preserve HTML markup that exists before the transition to HTML.

Michael, can you try the new WYSIWYGPLUGIN_PRESERVE_EXISTING_TAGS on trunk as documented in Item1391 to include b, strong maybe?

-- PaulHarvey - 09 Sep 2010

Got no time to test this any further.

-- MichaelDaum - 25 Mar 2011

Tricky, but fixed on branch Item14323

-- Main.CrawfordCurrie - 02 Mar 2017 - 09:51
Topic revision: r11 - 31 Jan 2018, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy