Mercurial > hg > rr-repo
view sites/all/modules/wysiwyg/wysiwyg.init.js @ 11:b0ee71395280
deleted .DS_Store files
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Mon, 28 Oct 2013 16:12:13 +0000 |
parents | ff03f76ab3fe |
children |
line wrap: on
line source
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);