XOOPS 2.4 では CKeditor が搭載されているのでそれに合わせて quick hack してみた。(eguide 2.54 からの差分)


eguide_admin.html
@@ -148,20 +148,19 @@
 <h3><{$smarty.const._MD_EXTEXT}></h3>
 <textarea name="body" wrap="virtual" cols="60" rows="10"><{$body}></textarea>
 
 <{if $use_fckeditor}>
-<script type="text/javascript" src="<{$xoops_url}>/common/fckeditor/fckeditor.js"></script>
[color]+<script type="text/javascript" src="<{$xoops_url}>/class/xoopseditor/ckeditor/ckeditor/ckeditor.js"></script>[/color]
 <script type="text/javascript">
 function fckeditor_exec(target, width, height, url) {
-	var area_width = width;
-	var area_height = height;
-	var xoops_url = url;
-	var oFCKeditor = new FCKeditor( target, area_width, area_height, ("<{$use_fckeditor}>"=="Basic")?"Basic":"Default" );
-	oFCKeditor.BasePath = xoops_url + "/common/fckeditor/";
-	oFCKeditor.ReplaceTextarea();
+	CKEDITOR.replace( target, {
+		toolbar:("<{$use_fckeditor}>"=="Basic")?"Basic":"Default",
+	} );
+}
+window.onload = function() {
+    fckeditor_exec("summary", "100%", "350", "<{$xoops_url}>");
+    fckeditor_exec("body", "100%", "350", "<{$xoops_url}>");
 }
-fckeditor_exec("summary", "100%", "350", "<{$xoops_url}>");
-fckeditor_exec("body", "100%", "350", "<{$xoops_url}>")
 </script>
 <input type="hidden" name="style" value="0" />
 <{else}>
 <h3><{$smarty.const._MD_EVENT_STYLE}></h3>