summaryrefslogtreecommitdiff
path: root/httemplate/elements/htmlarea.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-06-03 21:12:38 -0700
committerIvan Kohler <ivan@freeside.biz>2013-06-03 21:12:38 -0700
commit87ccff97601d522326f56184a41037278ad328c5 (patch)
tree24524e632f60d7d36442607da2378c3332725a9b /httemplate/elements/htmlarea.html
parent92b9791e93ad2de8ad60df75e0e342dac43b845a (diff)
upgrade fckeditor to ckeditor, for IE10 compatibility, RT#22014
Diffstat (limited to 'httemplate/elements/htmlarea.html')
-rw-r--r--httemplate/elements/htmlarea.html26
1 files changed, 12 insertions, 14 deletions
diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html
index f00c77360..d0f26e705 100644
--- a/httemplate/elements/htmlarea.html
+++ b/httemplate/elements/htmlarea.html
@@ -11,25 +11,23 @@ Example:
</%doc>
% #init
-<SCRIPT TYPE="text/javascript" src="<% $p %>elements/fckeditor/fckeditor.js">
+<SCRIPT TYPE="text/javascript" src="<% $p %>elements/ckeditor/ckeditor.js">
</SCRIPT>
% #editor
-<SCRIPT TYPE="text/javascript">
-
- var oFCKeditor = new FCKeditor('<% $opt{'field'} %>');
- oFCKeditor.Value = <% $opt{'curr_value'} |js_string %>;
+<textarea name="<% $opt{'field'} %>"><% $opt{'curr_value'} |h %></textarea>
- oFCKeditor.BasePath = '<% $p %>elements/fckeditor/';
- oFCKeditor.Config['SkinPath'] = '<% $p %>elements/fckeditor/editor/skins/silver/';
-% if ( $opt{'width'} ) {
- oFCKeditor.Width = '<% $opt{'width'} %>';
-% }
- oFCKeditor.Height = '<% $opt{'height'} || 420 %>';
- oFCKeditor.Config['StartupFocus'] = true;
- oFCKeditor.Config['EnterMode'] = 'br';
+<SCRIPT TYPE="text/javascript">
- oFCKeditor.Create();
+ CKEDITOR.replace('<% $opt{'field'} %>', {
+% if ( $opt{'width'} ) {
+ width: <% $opt{'width'} %>,
+% }
+ height: <% $opt{'height'} || 420 %>,
+ startupFocus: true,
+ toolbarCanCollapse: true,
+ enterMode: 2
+ });
</SCRIPT>