blob: 6ccdb314690b370c882d32f8b9a023667d5b46f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
|