diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-06-03 21:12:55 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-03 21:12:55 -0700 |
| commit | 2b9bbaf893a46eda004d43ab93500deb7874072a (patch) | |
| tree | 294c15f4ae434fe0a65510e18eebafe80f1639a4 /httemplate/elements/htmlarea.html | |
| parent | 1e7c040c58601fb8d2a25647c13b3fb06fb00b19 (diff) | |
upgrade fckeditor to ckeditor, for IE10 compatibility, RT#22014
Diffstat (limited to 'httemplate/elements/htmlarea.html')
| -rw-r--r-- | httemplate/elements/htmlarea.html | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index f00c77360..e173a7cb9 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -11,25 +11,24 @@ 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, + skin: 'kama', + toolbarCanCollapse: true, + enterMode: 2 + }); </SCRIPT> |
