projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bcd74b
)
Fix tinymce when jQuery not present CRM-12589
author
Coleman Watts
<coleman@civicrm.org>
Sat, 25 May 2013 00:54:32 +0000
(20:54 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Sat, 25 May 2013 00:54:32 +0000
(20:54 -0400)
templates/CRM/common/wysiwyg.tpl
patch
|
blob
|
blame
|
history
diff --git
a/templates/CRM/common/wysiwyg.tpl
b/templates/CRM/common/wysiwyg.tpl
index 3205c0326c98fef772369a8b211eba5c036b2aff..97bdc6a1ec0b5a2047c3b2bf199b579341a2702c 100644
(file)
--- a/
templates/CRM/common/wysiwyg.tpl
+++ b/
templates/CRM/common/wysiwyg.tpl
@@
-27,6
+27,11
@@
{* 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}