Changeset 598
- Timestamp:
- 04/20/09 22:39:08 (3 years ago)
- Location:
- trunk/src/apps/drupal/wysiwyg/editors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/apps/drupal/wysiwyg/editors/js/wymeditor.js
r593 r598 1 1 // $Id$ 2 3 /**4 * Drupal WYMeditor integration using Wysiwyg API5 * http://drupal.org/project/wysiwyg6 */7 2 8 3 /** … … 18 13 */ 19 14 Drupal.wysiwyg.editor.detach.wymeditor = function(context, params) { 20 var $field = $('#' + params.field); 21 var editor = $field.next().data(WYMeditor.WYM_INDEX); 22 if (typeof editor != 'undefined') { 23 WYMeditor.INSTANCES[editor].update(); 24 $field.next().remove(); 15 if (typeof params != 'undefined') { 16 var $field = $('#' + params.field); 17 var editor = $field.next().data(WYMeditor.WYM_INDEX); 18 if (typeof editor != 'undefined') { 19 WYMeditor.INSTANCES[editor].update(); 20 $field.next().remove(); 21 } 22 $field.show(); 23 } else { 24 jQuery.each( WYMeditor.INSTANCES, function() { 25 this.update(); 26 $(this._box).prev().show().end().remove(); 27 }); 25 28 } 26 $field.show();27 29 }; 28 30 -
trunk/src/apps/drupal/wysiwyg/editors/wymeditor.inc
r593 r598 2 2 // $Id$ 3 3 4 /**5 * Drupal WYMeditor integration using Wysiwyg API6 * http://drupal.org/project/wysiwyg7 */8 4 9 5 /** … … 83 79 function wysiwyg_wymeditor_settings($editor, $config, $theme) { 84 80 $settings = array( 85 'lang' => $GLOBALS['language']->language,86 81 'updateSelector' => ".form-submit", 87 82 'skin' => "compact" 88 83 ); 84 85 // Set language if set in $config 86 if (isset($config['language'])) { 87 $settings['lang'] = $config['language']; 88 } 89 89 90 90 // Add editor content stylesheet.
Note: See TracChangeset
for help on using the changeset viewer.