Opened 5 months ago

Closed 5 months ago

#23037 closed defect (bug) (duplicate)

Want to use twitter-bootstrap icons, but TinyMCE strips them out

Reported by: ruud@… Owned by:
Priority: normal Milestone:
Component: TinyMCE Version: 3.5
Severity: normal Keywords:
Cc:

Description

The 3.5 tinyMCE editor strips out empty HTML tags.
In this way I cannot use bootstrap-icon as per instructions from the twitter-bootstrap page:
http://twitter.github.com/bootstrap/base-css.html#icons

It works correctly when I use a &nbsp; or regular space within the <i> tags.

Might there be a way in which TinyMCE does not strip out empty html elements, when a class or classes is set on this element?

Change History (3)

  • Type changed from feature request to defect (bug)

Changed to defect (bug), because it might as well be.
In the 3.4.2 editor the <i> tags are converted to <em> elements, but aren't stripped out when empty. So I guess when other users open up there content into the 3.5 editor some content styling add-ons via empty elements will get stripped out.

  • Component changed from Editor to TinyMCE

Related: #22477

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closing as duplicate of #22477 as this is the same problem/affected by the same code in TinyMCE.

Note: See TracTickets for help on using tickets.