[关闭]
@cpt 2015-05-04T10:44:01.000000Z 字数 1344 阅读 1072

CKEditor在Ajax上的应用

翻译


标题:CKEditor in Ajax Applications
原文:http://sdk.ckeditor.com/samples/saveajax.html

疑难句

1.Due to focus on semantic markup and possible differences between the styles of content within the editor and the styles used when the content is rendered on a page, such editors are sometimes called WYSIWYM editors ("What You See Is What You Mean").

译文:当内容在页面上渲染的时候,由于关注于语义标记、关注于在呈现样式在编辑和使用时可能出现的不同,这样编辑有时又被叫做“所见即所得!”。

注:所谓的所见即所得是它使得用户在视图中所看到文档与该文档的最终产品具有相同的样式,也允许用户在视图中直接编辑文本、图形、或文档中的其他元素。

2.Saving data is a server-side operation and you are free to implement the save functionality on your own, in any way you like. CKEditor is a pure JavaScript component and it does not offer anything more than JavaScript methods and events to access the data so that you could save it on the server.
Be aware that a Save plugin for CKEditor is available. It provides the button, which fires a save event, but it currently works only for classic editor placed inside the element. If you would like to use the Save button to save data without reloading the page, e.g. in an Ajax application using inline editor, check the documentation about saving data.

译文:保存数据是服务端的操作,你可以自由的用你喜欢的方式实现save函数。CKEditor是一个纯JavaScript组件,它不提供JavaScript方法和事件以外的任何东西去接收数据并保存在服务器上。
你需要知道CKEditor的保存插件是可用的。它在工具条上提供保存按钮,这个保存按钮将会触发一个保存事件,但是目前仅仅能够用于经典编辑的表单元素所在的地方而不能用于行内编辑。如果你想要使用保存按钮去保存数据而不重载页面,例如在Ajax应用中使用行内编辑,查看文档以了解怎么实现这功能。

疑难词

  1. detect 检测
  2. dedicated 专用的、专注的
  3. semantically 语义地
  4. semantic markup 语义标记
  5. fine-tuning 微调、调整
  6. Massive 大量的
  7. seamlessly 无缝的
  8. candidate 候选方案、候选人
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注