Fix tinymce when jQuery not present CRM-12589
authorColeman Watts <coleman@civicrm.org>
Sat, 25 May 2013 00:54:32 +0000 (20:54 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 25 May 2013 00:54:32 +0000 (20:54 -0400)
templates/CRM/common/wysiwyg.tpl

index 3205c0326c98fef772369a8b211eba5c036b2aff..97bdc6a1ec0b5a2047c3b2bf199b579341a2702c 100644 (file)
 {* include wysiysg editor files *}
 {if $includeWysiwygEditor}
     {if $defaultWysiwygEditor eq 1}
+        <script>
+          {* this version of tinymce requires jquery *}
+          if (typeof(jQuery) != 'function')
+            var jQuery = cj;
+        </script>
         <script type="text/javascript" src="{$config->resourceBase}packages/tinymce/jscripts/tiny_mce/jquery.tinymce.js"></script>
         <script type="text/javascript" src="{$config->resourceBase}packages/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
     {elseif $defaultWysiwygEditor eq 2}