CKEditor如何切换皮肤?

话说CKEditor(原FCKeditor)确实相当好用的说,界面也非常的漂亮.

正因为界面很漂亮所以我们要换皮肤!(这是什么破逻辑...)

我是用JavaScript调用的:

 
  
< script type ="text/javascript" src ="../ckeditor/ckeditor.js" ></ script >

要切换CKEditor的皮肤的话打开ckeditor/ckeditor.js,找到

 
  
skin:'kama'

把kama修改为office2003或者v2就可以看到不同的皮肤效果了

 

原文地址:http://www.golbz.com/about_us/news/ckeditor_change_skins.html

 

ckeditor/ckeditor.js

转载于:https://www.cnblogs.com/golbz/archive/2010/06/10/1754940.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
对于在Vue3中使用CKEditor4,你可以使用Vue-ckeditor4组件。首先,你需要安装该组件,可以使用以下命令: npm install vue-ckeditor4 然后,在你的Vue组件中,你可以像这样使用它: <template> <div> <ckeditor :editor="editor" v-model="content" :config="editorConfig"></ckeditor> </div> </template> <script> import CKEditor from 'vue-ckeditor4' export default { components: { CKEditor }, data() { return { editor: '', content: '', editorConfig: { // 配置项 } } } } </script> 你可以在editorConfig中设置CKEditor的配置项,例如: editorConfig: { toolbar: [ { name: 'document', items: [ 'Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates' ] }, { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] }, { name: 'editing', items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] }, { name: 'insert', items: [ 'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak' , '-', 'Iframe' ] }, '/', { name: 'styles', items: [ 'Styles', 'Format' ] }, { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] }, { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl' ] }, { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] }, { name: 'tools', items: [ 'Maximize', 'ShowBlocks' ] }, { name: 'others', items: [ '-' ] }, { name: 'about', items: [ 'About' ] } ] } 这是一个简单的示例,你可以根据自己的需要进行配置。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值