merged wysiwyg submodule
This commit is contained in:
19
sites/all/modules/contrib/editor/wysiwyg/wysiwyg.init.js
Normal file
19
sites/all/modules/contrib/editor/wysiwyg/wysiwyg.init.js
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
Drupal.wysiwyg = Drupal.wysiwyg || { 'instances': {} };
|
||||
|
||||
Drupal.wysiwyg.editor = Drupal.wysiwyg.editor || { 'init': {}, 'attach': {}, 'detach': {}, 'instance': {} };
|
||||
|
||||
Drupal.wysiwyg.plugins = Drupal.wysiwyg.plugins || {};
|
||||
|
||||
(function ($) {
|
||||
// Determine support for queryCommandEnabled().
|
||||
// An exception should be thrown for non-existing commands.
|
||||
// Safari and Chrome (WebKit based) return -1 instead.
|
||||
try {
|
||||
document.queryCommandEnabled('__wysiwygTestCommand');
|
||||
$.support.queryCommandEnabled = false;
|
||||
}
|
||||
catch (error) {
|
||||
$.support.queryCommandEnabled = true;
|
||||
}
|
||||
})(jQuery);
|
Reference in New Issue
Block a user