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

How can I customize the skin for CKEditor 3.0? I downloaded a new skin and I have this JavaScript power

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',
});

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745046385a4608122.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信