Feature to preview the text of CKEditor on a web page, via POST or GET
- Download the plugin and extract the files in the plugins folder of CKEditor
- Enable the plugin by using the extraPlugins configuration setting
config.extraPlugins = 'previewinserver';URL Server
config.previewInServerUrl = 'http://example.com/preview';Method
config.previewInServerMethod = 'Post';or
config.previewInServerMethod = 'Get';Field name of your model on the server
config.previewInServerNameFieldWithHtml = 'Text';Example:
config.previewInServerFields = [
{
key: 'name1',
value: 'value1',
selector: 'selector1'
},
{
key: 'name2',
value: 'value2',
selector: 'selector2'
}
]| Field | Description |
|---|---|
| key | Name of field the your model |
| value | Value fixed |
| selector | Value obtained by the document.querySelector when sending the data to the server |
This plugin was based preview and ServerPreview