开发者

ckeditor: how to wire up menu buttons?

开发者 https://www.devze.com 2023-01-03 19:10 出处:网络
I have ckeditor embedded into one of my pages....but I don\'t know how to wire up certain buttons in ckeditor to perform specific actions. Most importantly, how do I tell it 开发者_StackOverflow中文版

I have ckeditor embedded into one of my pages....but I don't know how to wire up certain buttons in ckeditor to perform specific actions. Most importantly, how do I tell it 开发者_StackOverflow中文版when the save button is clicked to save the document?


Dave--

The beauty of the save button in CKEditor is that it is setup default to submit the form that it's in. In my company's case, I bolted in CKEditor expecting to have to disable the save button because the larger form already had a save button...but it turns out that it worked right out of the box. Get the system installed, tested, and hit save...see what happens.

You can control the output of buttons in the Config.js file. If a particular button is not to your liking, you can use javascript to define actions or create new buttons there as well. There are fairly good tutorials on this at http://docs.cksource.com/

0

精彩评论

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