Set body_class option of tinymce editor

Permalink 0 0 Browser Info Environment
When loading the editor config element. We couldn't set the body_class of tinymce.

I likte to load the editor config element with this option
<?php Loader::element('editor_config', array('body_class' => 'class_for_tinymce')); ?>

Inside the /concrete/elements/editor_config.php
Extend the tinyMCE.init({}); method from line 39 with the code:

if (!empty($body_class))
echo 'body_class: "'.$body_class.'",';
Status: New
View Replies:

concrete5 Environment Information

# Concrete5 versie
5.5.1

# Concrete5 pakketten
Manage erdee (0.128).

# Concrete5 overschrijvingen
languages/nl, mail/proefles_confirmation.php, mail/confirmation.php, mail/proefles_confirmation-plain.php

# Server software
Apache/2.2.14 (Ubuntu)

# Server API
apache2handler

# PHP versie
5.3.2-1ubuntu4.11

# PHP extensies
apache2handler, apc, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib.

# PHP instellingen
apc.max_file_size - 1M
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7