Mercurial > hg > rr-repo
comparison sites/all/modules/wysiwyg/wysiwyg.init.js @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 | |
2 Drupal.wysiwyg = Drupal.wysiwyg || { 'instances': {} }; | |
3 | |
4 Drupal.wysiwyg.editor = Drupal.wysiwyg.editor || { 'init': {}, 'attach': {}, 'detach': {}, 'instance': {} }; | |
5 | |
6 Drupal.wysiwyg.plugins = Drupal.wysiwyg.plugins || {}; | |
7 | |
8 (function ($) { | |
9 // Determine support for queryCommandEnabled(). | |
10 // An exception should be thrown for non-existing commands. | |
11 // Safari and Chrome (WebKit based) return -1 instead. | |
12 try { | |
13 document.queryCommandEnabled('__wysiwygTestCommand'); | |
14 $.support.queryCommandEnabled = false; | |
15 } | |
16 catch (error) { | |
17 $.support.queryCommandEnabled = true; | |
18 } | |
19 })(jQuery); |