wysiwyg.init.js 668 B

12345678910111213141516171819
  1. Drupal.wysiwyg = Drupal.wysiwyg || { 'instances': {}, 'excludeIdSelectors': { 'tokens': ['[id^="token-"]'] } };
  2. Drupal.wysiwyg.editor = Drupal.wysiwyg.editor || { 'init': {}, 'update': {}, 'attach': {}, 'detach': {}, 'instance': {} };
  3. Drupal.wysiwyg.plugins = Drupal.wysiwyg.plugins || {};
  4. (function ($) {
  5. // Determine support for queryCommandEnabled().
  6. // An exception should be thrown for non-existing commands.
  7. // Safari and Chrome (WebKit based) return -1 instead.
  8. try {
  9. document.queryCommandEnabled('__wysiwygTestCommand');
  10. $.support.queryCommandEnabled = false;
  11. }
  12. catch (error) {
  13. $.support.queryCommandEnabled = true;
  14. }
  15. })(jQuery);