最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Customize CKEditor 3.0 with a downloaded template skin - Stack Overflow

programmeradmin0浏览0评论

How can I customize the skin for CKEditor 3.0? I downloaded a new skin and I have this JavaScript powering it at the moment:

CKEDITOR.replace( 'pageBody',
    {
        toolbar :
        [
            ['Format'],
            ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', '-', 'About']
        ],
    });

I wanted to have a WordPress editor on my CMS, which is TinyMCE, but it's way plicated. So I turned to CKEditor and want to make it look better with a skin I downloaded.

How can I customize the skin for CKEditor 3.0? I downloaded a new skin and I have this JavaScript powering it at the moment:

CKEDITOR.replace( 'pageBody',
    {
        toolbar :
        [
            ['Format'],
            ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', '-', 'About']
        ],
    });

I wanted to have a WordPress editor on my CMS, which is TinyMCE, but it's way plicated. So I turned to CKEditor and want to make it look better with a skin I downloaded.

Share edited Feb 18, 2012 at 3:59 random 9,95610 gold badges69 silver badges84 bronze badges asked Oct 31, 2009 at 14:42 tarnfeldtarnfeld 26.6k44 gold badges112 silver badges147 bronze badges 1
  • What exactly do you want to customize?? – Pekka Commented Oct 31, 2009 at 14:51
Add a ment  | 

1 Answer 1

Reset to default 6

Underneath the closing ], add:

skin : 'name_of_skin',

So it will end up like this:

CKEDITOR.replace( 'pageBody',
{
  toolbar :
  [
      ['Format'],
      ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', '-', 'About']
  ],
  skin : 'name_of_skin',
});
发布评论

评论列表(0)

  1. 暂无评论