保存多个内嵌编辑用的CKEditor [英] Saving multiple inline edits with CKEditor

查看:117
本文介绍了保存多个内嵌编辑用的CKEditor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用asp.net和我想用的CKEditor的行内编辑功能编辑的通讯,然后简讯保存到数据库,并通过发送电子邮件。

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.

如按oleq丹寺问题上内联编辑答案。 ckeditor的在线编辑

Such as the answer by oleq to Dan Temple question on inline editing. ckeditor inline edit

不过,我想有类似的CKEditor的网站在不同风格的多个区域可编辑的在线演示简报。 http://ckeditor.com/demo#inline

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

那么我想用ajax从每个编辑器的单个实例的整理数据,并保存到数据库中。

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

任何帮助将是很大的AP preciated。

Any help would be greatly appreciated.

非常感谢。卢克

推荐答案

我相信这样做你正在寻找什么: ckeditor的在线保存/提交

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

您可能需要改变一些东西,让它为你工作。如果你正在编写有效的HTML,那么我建议使用类似以引入nokogiri搜索并替换页面元素的内容的ID,而不是使用常规的EX pressions这样的答案一样。

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.

这篇关于保存多个内嵌编辑用的CKEditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆