Wysiwyg 6.x-2.x, xxxx-xx-xx
---------------------------
+#362137 by jfh, sun: Fixed WYMeditor broken when JS/CSS aggregation is enabled.
#328252 by sun: Added TinyMCE plugin BBCode for 3.x.
#429926 by TwoD, sun: Fixed TinyMCE broken due to renamed Flash/Media plugin.
#342864 by davexoxide, sun: Added YUI editor support.
* Attach this editor to a target element.
*/
Drupal.wysiwyg.editor.attach.wymeditor = function(context, params, settings) {
+ // Prepend basePath to wymPath.
+ settings.wymPath = settings.basePath + settings.wymPath;
+ // Attach editor.
$('#' + params.field).wymeditor(settings);
};
* Drupal.settings.wysiwyg.configs.{editor}
*/
function wysiwyg_wymeditor_settings($editor, $config, $theme) {
+ // @todo Setup $library in wysiwyg_load_editor() already.
+ $library = (isset($editor['library']) ? $editor['library'] : key($editor['libraries']));
$settings = array(
+ 'basePath' => base_path() . $editor['library path'] . '/',
+ 'wymPath' => $editor['libraries'][$library]['files'][0],
+ // @todo Does not work in Drupal; jQuery can live anywhere.
+ 'jQueryPath' => base_path() . 'misc/jquery.js',
'updateSelector' => '.form-submit',
'skin' => $theme,
);