1
Peekay
Tinyeditor - how to stop paragraph tags wrapping around block elements
  • 2012/7/25 10:03

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


An annoying default in TinyMCE is that if you paste code into the HTML window, e.g. an iFrame, it is automatically wrapped in paragraph tags. This makes it difficult to format the object and can sometimes break the W3C page validation.

There may well be a later version of Tinyeditor and the default may have changed, but if you have 3.3.9.2 and also find this is a nuisance, the default behaviour can be disabled.

class/xoopseditor/tinymce/settings.php

Just underneath:

"force_hex_style_colors" => true,


add:

"forced_root_block" => false,


Note that this still allows the correct creation of paragraph tags on pressing enter.

HTH

2
irmtfan
Re: Tinyeditor - how to stop paragraph tags wrapping around block elements
  • 2012/7/25 10:50

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Thank you very much Peekay.
Some of the end users in one of my websites have reported it to me but i had not time to follow.
your contribution is really on time.

3
Peekay
Re: Tinyeditor - how to stop paragraph tags wrapping around block elements
  • 2012/7/26 7:43

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Glad it was of use.

Login

Who's Online

322 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 322


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits