Saving multiple inline edits with CKEditor

你离开我真会死。 提交于 2019-12-02 15:54:24

问题


I'm using asp.net and I would like to edit a newsletter using CKEditor’s inline editing capabilities and then save the newsletter to the database and send via an email.

I've seen various posts about getting the data from a single instance of the inline editor on a page.

Such as the answer by oleq to Dan Temple question on inline editing. How do I save inline editor contents on the server?

However I would like to have a newsletter similar to the inline demo on the ckeditor site with multiple areas in different style that can be edited. http://ckeditor.com/demo#inline

Then I guess using ajax to collate the data from each of the individual instances of the editor and save to the database.

Any help would be greatly appreciated.

Many thanks. Luke


回答1:


I believe this does exactly what you are looking for: ckeditor inline save/submit

You might need to change a few things to make it work for you. If you are writing valid HTML then I would suggest using something like Nokogiri to search and replace the contents of the page element id's instead of using regular expressions like this answer does.



来源:https://stackoverflow.com/questions/16108461/saving-multiple-inline-edits-with-ckeditor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!