开发者

CKEditor PlugIn, Simple PlugIn Ability

开发者 https://www.devze.com 2022-12-22 00:52 出处:网络
I\'m interested in creating a plugin that does this simple task: Steps 1. User selects some text by highlighting

I'm interested in creating a plugin that does this simple task: Steps 1. User selects some text by highlighting 2. user clicks the plug-in 3. CKEDITOR, wraps the selected text with a tag with some class and/or ID.

Can anyone help with this? I've been playing with CKEDITOR.htmlWriter but haven't even been able to get that started: http://docs.cksource.com/ckedi开发者_JS百科tor_api/symbols/CKEDITOR.htmlWriter.html#constructor

Thanks!


Look at the basicstyles plugin, you just need to define a button that applies a "style", and you define what's the element, attributes and styles that this "style" means.

0

精彩评论

暂无评论...
验证码 换一张
取 消