Newer
Older
Daniel Kudwien
committed
// $Id$
Drupal.wysiwyg = Drupal.wysiwyg || { 'instances': {} };
Daniel Kudwien
committed
Daniel Kudwien
committed
Drupal.wysiwyg.editor = Drupal.wysiwyg.editor || { 'init': {}, 'attach': {}, 'detach': {}, 'instance': {} };
Daniel Kudwien
committed
Drupal.wysiwyg.plugins = Drupal.wysiwyg.plugins || {};
Daniel Kudwien
committed
(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);