CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Configuring TinyMCE's valid_elements
Pages: [1]

Author Topic: Configuring TinyMCE's valid_elements  (Read 897 times)

kharding

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 4
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: Recent
  • PHP version: 5.3.16
Configuring TinyMCE's valid_elements
December 21, 2012, 09:12:26 pm
Hi all,

I need to configure what the Civi TinyMCE install will consider valid elements; essentially, the default list strips too many tags from message templates I need to use.  CKEditor freaks out at the templates I'm using (which are attempts to be multi-platform responsive layouts), and adds all kinds of empty paragraph tags and strips out elements when it's not happy with the code.

So, I'm looking for the easiest way to edit the valid_elements of TinyMCE; TinyMCE's documents suggest that the best way to do this is via the TinyMCE.init() call.

Problem is, I can't find where this is being called for the message templates form, so I can't create a custom .tpl file, and etc...

Anyone know this one?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Configuring TinyMCE's valid_elements

This forum was archived on 2017-11-26.