public class CKEditorService extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CKEditorService.CKEditorListener
An interface for the VCKEditorTextField to get events from the CKEditor.
|
Constructor and Description |
---|
CKEditorService() |
Modifier and Type | Method and Description |
---|---|
static void |
addStylesSet(String name,
String jsStyles) |
static void |
addTemplates(String name,
String jsDefinition) |
static com.google.gwt.core.client.JavaScriptObject |
convertJavaScriptStringToObject(String jsString) |
static CKEditor |
get(String id)
Returns a javascript CKEDITOR.editor instance for given id.
|
static boolean |
libraryReady() |
static com.google.gwt.core.client.JavaScriptObject |
loadEditor(String id,
CKEditorService.CKEditorListener listener,
String jsInPageConfig,
int compWidth,
int compHeight)
Use this method to load editor to given identifier.
|
static void |
loadLibrary(com.google.gwt.core.client.Scheduler.ScheduledCommand afterLoad) |
static void |
reduceBlurDelay() |
static String |
version() |
public static void loadLibrary(com.google.gwt.core.client.Scheduler.ScheduledCommand afterLoad)
public static boolean libraryReady()
public static com.google.gwt.core.client.JavaScriptObject loadEditor(String id, CKEditorService.CKEditorListener listener, String jsInPageConfig, int compWidth, int compHeight)
id
- the string DOM listener
- the CKEditorService.CKEditorListener will get notified when the editor instance is ready, changed, etc.jsInPageConfig
- the String possible custom "in page" configuration; note that this must be an expected JSON for the CKEDITOR in page config.
sent "as is" without any real syntax or security testing, so be sure you know it's valid and not malicious,
such as: {toolbar : 'Basic', language : 'en'}
public static String version()
public static void reduceBlurDelay()
public static CKEditor get(String id)
id
- the String id of the editor instancepublic static com.google.gwt.core.client.JavaScriptObject convertJavaScriptStringToObject(String jsString)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.