JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / clipboard / plugin.js
index ebfb1f8..3740057 100644 (file)
@@ -283,7 +283,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                // keyboard paste or execCommand ) (#4874).\r
                CKEDITOR.env.ie && ( depressBeforeEvent = 1 );\r
 \r
-               var retval = editor.document.$.queryCommandEnabled( command ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED;\r
+               var retval = CKEDITOR.TRISTATE_OFF;\r
+               try { retval = editor.document.$.queryCommandEnabled( command ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; }catch( er ){}\r
+\r
                depressBeforeEvent = 0;\r
                return retval;\r
        }\r