Automatic Configuration of TinyMCE in Drupal
Ads by DZone
At Drupalcon Boston I was in a session that Boris Mann of Raincity Studios was giving and he made a throwaway comment about how TinyMCE doesn't actually suck - if you know how to configure it correctly.Well, I always thought it sucked and caused more problems than itsolved, so I contacted Boris and asked him how he configures TinyMCE.He pointed me to a Bryght install profile for Drupal that automaticallysets up various TinyMCE profiles.
While the install profile is great, I wanted to be able to tweak thesettings just a bit and be able to configure TinyMCE on existing sites.I found this GHOP project that automatically configures TinyMCEand I decided to combine Boris's settings with this. The module alsoremoves the default line break filter for the "full HTML" input filterand expands the allowed tags for the "filtered HTML" input filter.
The result is a module that you can add to your site, run it once, thendisable it. I call it the "TinyMCE Automatic Profile Generator". I'mnot planning on making it a full drupal contribution, as I think it's alittle too specialized, but you can download it here if you'd like.
Once you run it, be sure to:
- Give the proper roles "access TinyMCE" permissions on admin/user/access
- Assign roles to each profile on admin/settings/tinymce
- the default image button is enabled for the Advanced Profile
- thefont-style-select box is enabled with a "code" style - to utilizeyou'll need to define a "code" CSS class to format programming code asdesired
Feel free to let me know of any additional configurations that you think the module should include.
- Login or register to post comments
- 1361 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)









