add fields to svc_phone: SMS provider, SMS provider acct#, max simultaneous calls
[freeside.git] / httemplate / elements / htmlarea.html
index dca4328..f9dcffd 100644 (file)
@@ -11,22 +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/';
-  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,
+    basePath: '<% $p %>elements/ckeditor/',
+    enterMode: 2
+  });
 
 </SCRIPT>