diff --git c/wysiwyg.admin.inc w/wysiwyg.admin.inc index 26e3b6f..99909d1 100644 --- c/wysiwyg.admin.inc +++ w/wysiwyg.admin.inc @@ -43,6 +43,7 @@ function wysiwyg_profile_form($form_state, $profile) { 'css_setting' => 'theme', 'css_path' => NULL, 'css_classes' => NULL, + 'library' => '', ); $profile = (object) $profile; @@ -277,6 +278,27 @@ function wysiwyg_profile_form($form_state, $profile) { '#description' => t('Optionally define CSS classes for the "Font style" dropdown list.
Enter one class on each line in the format: !format. Example: !example
If left blank, CSS classes are automatically imported from all loaded stylesheet(s).', array('!format' => '[title]=[class]', '!example' => 'My heading=header1')), ); + $form['advanced'] = array( + '#type' => 'fieldset', + '#title' => t('Advanced Setup'), + '#collapsible' => TRUE, + '#collapsed' => TRUE, + '#description' => t("This settings require good knowledge of the editor's configuration, and in some cases require advanced libraries installation."), + ); + + $execmode_options = array('' => 'Default Mode'); + foreach ($editor['libraries'] as $exec_mode => $settings ) { + $execmode_options[$exec_mode] = $settings['title']; + } + + $form['advanced']['library'] = array( + '#type' => 'select', + '#title' => t('Execution Mode'), + '#default_value' => $profile->settings['library'], + '#options' => $execmode_options, + '#description' => t('Some editors can be configured to run different versions of javascript libraries, as minified, packed, source, gziped. Check the right library files exist in your library directory.'), + ); + $form['submit'] = array( '#type' => 'submit', '#value' => t('Save'),