Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 855 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 855 Bytes

org.ekstep.libs.ckeditor


Usage:

1. Include the plugin as a dependency in the manifest.json file:
{
    "dependencies": [
        {
            "type": "plugin",
            "plugin": "org.esktep.libs.ckeditor",
            "ver": "1.0"
        }
    ]
} 
2. Create a config.js file from config.sample.js in org.ekstep.ckeditor-1.0/ckeditor/ folder.

Customize the config.js file to modify the settings, and include/exclude the plugins needed for your implementation.

3. Finally, instantiate the CKEditor on a textarea using:
CKEDITOR.replace('myTextarea', {
    customConfig: ecEditor.resolvePluginResource(this.manifest.id, this.manifest.ver, "editor/config.js"),
    skin: 'moono-lisa,' + CKEDITOR.basePath + "skins/moono-lisa/",
    contentsCss: CKEDITOR.basePath + "contents.css"
});