CKEditor 3.4.1 WYSIWYG(所见即所得) 编辑器

更换supesite的编辑器,
打开文件admin/tpl/spacenws.htm文件:

<textarea cols="80" id="message" name="message" rows="10">$thevalue[message]</textarea>
<script type="text/javascript" src="{S_URL}/include/ckeditor/ckeditor_basic.js"></script>
<script type="text/javascript">
//<![CDATA[
function insertHtml( value )
{
var oEditor = CKEDITOR.instances.message;
//var value = document.getElementById( 'message' ).value;

if ( oEditor.mode == 'wysiwyg' )
{
oEditor.insertHtml( value );
}
else
alert( 'You must be on WYSIWYG mode!' );
}

CKEDITOR.replace( 'message' );
//]]>
</script>

二、下截ckeditor程序并解压到/include/ckeditor目录:

Download : http://ckeditor.com/download

相关文章:

1、supesite远程图片本地化并作为文章附件
https://www.onexin.net/supesite-remote-image-localization-and-as-a-post-attachments/

2、TinyMCE Syntaxhighlighter Plugin for Wordpress
https://www.onexin.net/tinymce-syntaxhighlighter-plugin-for-wordpress/

3、Supesite文章内TAG显示URL链接
https://www.onexin.net/supesite-article-in-tag-display-url-links/

4、SupeSite常用sql语句高级篇(二)
https://www.onexin.net/supesite-commonly-used-high-level-articles-sql-statement-b/

5、SupeSite7.0数据调用模块参数详解
https://www.onexin.net/supesite7-0-data-call-module-arguments-detailed/

转载请注明出处:https://www.onexin.net/ckeditor-3-4-1-wysiwyg-wysiwyg-editor/

Leave a Reply

Your email address will not be published. Required fields are marked *