Cannot Read Property 'addcss' of Undefined Ckeditor

Report an issue

Run into source

This is the API entry point. The unabridged CKEditor code runs under this object.

Filtering

Config options

  • disableAutoInline : Boolean

  • replaceClass : String

    The form name used to identify <textarea> elements to be replaced by CKEditor instances. Set information technology to empty/zilch to disable this characteristic.

    See source

                        CKEDITOR.replaceClass = 'rich_editor';                                      

    Defaults to 'ckeditor'

  • skinName : Cord

    The peel to load for all created instances, information technology may be the name of the skin folder inside the editor installation path, or the proper noun and the path separated by a comma.

    See source

    Note: This is a global configuration that applies to all instances.

                        CKEDITOR.skinName = 'moono';  CKEDITOR.skinName = 'myskin,/customstuff/myskin/';                                      

    Defaults to 'moono-lisa'

Backdrop

  • DATA_TRANSFER_CROSS_EDITORS : Number

    since iv.5.0 readonly

    Data transfer operation (drag and drop or copy and paste) started in one editor instance and concluded in some other.

    See source

    Defaults to 2

  • DATA_TRANSFER_EXTERNAL : Number

    since 4.5.0 readonly

    Data transfer operation (elevate and drop or copy and paste) started exterior of the editor. The source of the information may exist a textarea, HTML, another application, etc.

    See source

    Defaults to 3

  • DATA_TRANSFER_INTERNAL : Number

    since 4.5.0 readonly

    Data transfer operation (elevate and drib or copy and paste) started and ended in the aforementioned editor instance.

    See source

    Defaults to 1

  • DIALOG_RESIZE_BOTH : Number

    readonly

    Allow the dialog to be resized in both directions.

    Encounter source

    Defaults to three

  • DIALOG_RESIZE_HEIGHT : Number

    readonly

    Only allow vertical resizing for this dialog, disable horizontal resizing.

    See source

    Defaults to ii

  • DIALOG_RESIZE_NONE : Number

    readonly

  • DIALOG_RESIZE_WIDTH : Number

    readonly

    Simply permit horizontal resizing for this dialog, disable vertical resizing.

    See source

    Defaults to ane

  • DIALOG_STATE_BUSY : Number

    readonly

  • DIALOG_STATE_IDLE : Number

    readonly

  • ELEMENT_MODE_APPENDTO : Number

    readonly

    The editor is to be created within the element.

    Meet source

    Defaults to two

  • ELEMENT_MODE_INLINE : Number

    readonly

    The editor is to be attached to the chemical element, using information technology as the editing block.

    Come across source

    Defaults to iii

  • ELEMENT_MODE_NONE : Number

    readonly

  • ELEMENT_MODE_REPLACE : Number

    readonly

    The element is to be replaced by the editor instance.

    See source

    Defaults to 1

  • ENLARGE_BLOCK_CONTENTS : Number

    readonly

  • ENLARGE_ELEMENT : Number

    readonly

  • ENLARGE_INLINE : Number

    readonly

  • ENLARGE_LIST_ITEM_CONTENTS : Number

    readonly

  • ENTER_BR : Number

    readonly

  • ENTER_DIV : Number

    readonly

  • ENTER_P : Number

    readonly

  • EVENT_PHASE_AT_TARGET : Number

    readonly

  • EVENT_PHASE_BUBBLING : Number

    readonly

  • EVENT_PHASE_CAPTURING : Number

    readonly

  • FILTER_SKIP_TREE : Number

    since 4.iv.0 readonly

  • HISTORY_HASH : Number

    since 4.17.0 readonly

    Integration with browser's "Go back" and "Go forwards" buttons using hash-based navigation.

    See source

    Defaults to 2

  • HISTORY_NATIVE : Number

    since 4.17.0 readonly

    Integration with browser's "Go dorsum" and "Go frontwards" buttons using Native History API.

    Come across source

    Defaults to 1

  • HISTORY_OFF : Number

    since 4.17.0 readonly

    Switch off integration with browser's "Go back" and "Go forward" buttons.

    Come across source

    Defaults to 0

  • LINEUTILS_AFTER : Number

    readonly

    Determines a position relative to an element in DOM (after).

    See source

    Defaults to 2

  • LINEUTILS_BEFORE : Number

    readonly

    Determines a position relative to an element in DOM (before).

    See source

    Defaults to 0

  • LINEUTILS_INSIDE : Number

    readonly

    Determines a position relative to an element in DOM (inside).

    See source

    Defaults to 4

  • MOUSE_BUTTON_LEFT : Number

    since 4.vii.3 readonly

  • MOUSE_BUTTON_MIDDLE : Number

    since 4.7.3 readonly

  • MOUSE_BUTTON_RIGHT : Number

    since iv.7.3 readonly

  • NODE_DOCUMENT : Number

    readonly

  • NODE_DOCUMENT_FRAGMENT : Number

    readonly

  • NODE_ELEMENT : Number

    readonly

  • NODE_TEXT : Number

    readonly

  • POSITION_AFTER_END : Number

    readonly

  • POSITION_AFTER_START : Number

    readonly

  • POSITION_BEFORE_END : Number

    readonly

  • POSITION_BEFORE_START : Number

    readonly

  • POSITION_CONTAINS : Number

    readonly

  • POSITION_DISCONNECTED : Number

    readonly

  • POSITION_FOLLOWING : Number

    readonly

  • POSITION_IDENTICAL : Number

    readonly

  • POSITION_IS_CONTAINED : Number

    readonly

  • POSITION_PRECEDING : Number

    readonly

  • SELECTION_ELEMENT : Number

    readonly

  • SELECTION_NONE : Number

    readonly

  • SELECTION_TEXT : Number

    readonly

  • SHRINK_ELEMENT : Number

    readonly

  • SHRINK_TEXT : Number

    readonly

  • STYLE_BLOCK : Number

    readonly

  • STYLE_INLINE : Number

    readonly

  • STYLE_OBJECT : Number

    readonly

  • TRISTATE_DISABLED : Number

    readonly

  • TRISTATE_OFF : Number

    readonly

    Used to bespeak the OFF or INACTIVE state.

    Come across source

    Defaults to ii

  • TRISTATE_ON : Number

    readonly

    Used to indicate the ON or ACTIVE state.

    See source

    Defaults to i

  • UI_BUTTON : Cord

    readonly

  • UI_PANEL : String

    readonly

  • UI_PANELBUTTON : String

    readonly

    Defaults to 'panelbutton'

  • UI_RICHCOMBO : String

    readonly

  • UI_SEPARATOR : Cord

    readonly

  • VALIDATE_AND : Number

    readonly

    Dialog AND logical value indicates the relation between validation functions.

    See source

    Defaults to ii

  • VALIDATE_OR : Number

    readonly

    Dialog OR logical value indicates the relation betwixt validation functions.

    See source

    Defaults to 1

  • VERBOSITY_ERROR : Number

    since four.five.4 readonly

    Fault reporting verbosity level. When verbosity is ready to this value, simply error messages will be output to the panel. It is a binary flag and then information technology might exist combined with the VERBOSITY_WARN flag.

    See source

    Defaults to ii

  • VERBOSITY_WARN : Number

    since iv.5.4 readonly

    Warning reporting verbosity level. When verbosity is set to this value, simply warn letters will be output to the console. Information technology is a binary flag so it might exist combined with the VERBOSITY_ERROR flag.

    See source

    Defaults to 1

  • basePath : String

    The full URL for the CKEditor installation directory. Information technology is possible to manually provide the base path by setting a global variable named CKEDITOR_BASEPATH. This global variable must exist set before the editor script loading.

    See source

                        alarm( CKEDITOR.basePath ); // e.thousand. 'http://www.example.com/ckeditor/'                                      
  • currentInstance : editor

    The editor which is currently active (has user focus).

    Meet source

                        role showCurrentEditorName() {     if ( CKEDITOR.currentInstance )         alert( CKEDITOR.currentInstance.name );     else         alert( 'Please focus an editor start.' ); }CKEDITOR#event-currentInstance                                      
  • certificate : document

    The document of the window storing the CKEDITOR object.

    Run into source

                        alarm( CKEDITOR.document.getBody().getName() ); // 'body'                                      
  • instances : Object

    Stores references to all editor instances created. The name of the properties in this object stand for to instance names, and their values incorporate the CKEDITOR.editor object representing them.

    See source

                        alert( CKEDITOR.instances.editor1.proper noun ); // 'editor1'                                      

    Defaults to {}

  • loadFullCoreTimeout : Number

    The time to wait (in seconds) to load the full editor code afterward the folio load, if the "ckeditor_basic" file is used. If gear up to cypher, the editor is loaded on demand, as soon as an instance is created.

    See source

    This value must exist set on the page before the page load completion.

                        // Loads the full source afterwards five seconds. CKEDITOR.loadFullCoreTimeout = v;                                      

    Defaults to 0

  • revision : String

    Contains the CKEditor revision number. The revision number is incremented automatically, following each modification to the CKEditor source code.

    Encounter source

                        alert( CKEDITOR.revision ); // e.g. '3975'                                      

    Defaults to '%REV%'

  • rnd : Number

    A iii-digit random integer, valid for the entire life of the CKEDITOR object.

    See source

                        alert( CKEDITOR.rnd ); // e.g. 319                                      
  • status : String

    Indicates the API loading status. The following statuses are available:

    See source

    • unloaded: the API is not yet loaded.
    • basic_loaded: the basic API features are available.
    • basic_ready: the bones API is ready to load the full core code.
    • loaded: the API tin can be fully used.

    Example:

                        if ( CKEDITOR.condition == 'loaded' ) {     // The API can now be fully used.     doSomething(); } else {     // Wait for the full core to be loaded and fire its loading.     CKEDITOR.on( 'load', doSomething );     CKEDITOR.loadFullCore && CKEDITOR.loadFullCore(); }                                      

    Defaults to 'unloaded'

  • timestamp : String

    A constant cord unique for each release of CKEditor. Its value is used, past default, to build the URL for all resources loaded by the editor code, guaranteeing clean cache results when upgrading.

    See source

                        alert( CKEDITOR.timestamp ); // e.chiliad. '87dm'                                      

    Defaults to ''

  • verbosity : Number

    since 4.5.4

  • version : Cord

  • Private object used to concur core stuff. Information technology should not be used outside of the API lawmaking every bit properties defined here may modify at any time without notice.

    Encounter source

  • pasteFilters : Object

    since 4.xiii.0 private

Static properties

  • useCapture : Boolean

    mixed static

Methods

  • constructor() → event

  • add( editor )

    Adds an editor case to the global CKEDITOR object. This office is available for internal use mainly.

    See source

    Parameters

    editor : editor

    The editor instance to be added.

  • addCss( css )

    Adds CSS rules to exist appended to the editor document. This method is generally used past plugins to add together custom styles to the editor document. For basic content styling the contents.css file should be used instead.

    See source

    Note: This office should be called earlier the creation of editor instances.

                        // Add together styles for all headings inside editable contents. CKEDITOR.addCss( '.cke_editable h1,.cke_editable h2,.cke_editable h3 { border-lesser: 1px dotted red }' );                                      

    Parameters

    css : String

    The style rules to be appended. CKEDITOR.config.contentsCss

  • addTemplate( name, source ) → template

    Adds a named CKEDITOR.template instance to exist reused amid all editors. This will render the existing one if a template with same name is already defined. Additionally, it fires the "template" event to allow template source customization.

    Come across source

    Parameters

    name : Cord

    The name which identifies a UI template.

    source : String

    The source string for amalgam this template.

    Returns

    template

    The created template example.

  • addTemplates( name, definition )

    Adds templates' collection to the list of all bachelor templates.

    See source

    Parameters

    proper noun : String

    Name of the templates' collection.

    definition : collectionDefinition

    Definition of templates' collection.

  • appendTimestamp( resource ) → String

    since 4.17.ii

    Leaves the URL unchanged if information technology is a directory URL or it already contains querystring parameter.

    Parameters

    resource : Cord

    The resources URL to which the timestamp should be appended.

    Returns

    String

    The resources URL with cache primal appended whenever possible.

  • appendTo( chemical element, [ config ], [ data ] ) → editor

    Creates a new editor case at the finish of a specific DOM element.

    Come across source

                        <!DOCTYPE html>     <html>         <head>             <meta charset="utf-viii">             <title>CKEditor</title>             <!-- Make sure the path to CKEditor is right. -->         <script src="/ckeditor/ckeditor.js"></script>     </caput>     <body>         <div id="editorSpace"></div>         <script>             CKEDITOR.appendTo( 'editorSpace' );         </script>     </body> </html>                                      

    Parameters

    element : Object | String

    The DOM element, its ID, or name.

    [ config ] : Object

    The specific configuration to apply to this editor example. Configuration set here will override the global CKEditor settings (come across CKEDITOR.config).

    [ data ] : Cord

    Since iii.3. Initial value for the instance.

    Returns

    editor

    The editor example created.

  • capture()

    Register event handler nether the capturing phase on supported target.

    See source

  • define( name, meta )

    Predefine some intrinsic backdrop on a specific event name.

    See source

    Parameters

    proper noun : String

    The consequence name

    meta : Object

    Properties

    [ errorProof ]

    Whether the event firing should catch error thrown from a per listener telephone call.

    Defaults to false

  • domReady()

    Specify a role to execute when the DOM is fully loaded.

    See source

    If chosen after the DOM has been initialized, the function passed in will be executed immediately.

  • editorConfig( config )

    Function called upon loading a custom configuration file that can modify the editor example configuration (CKEDITOR.editor.config). Information technology is usually defined within the custom configuration files that can include developer defined settings.

    Run across source

                        // This is supposed to be placed in the config.js file. CKEDITOR.editorConfig = function( config ) {     // Define changes to default configuration here. For example:     config.language = 'fr';     config.uiColor = '#AADC6E'; };                                      

    Parameters

    config : config

    A configuration object containing the settings defined for a CKEDITOR.editor instance up to this office telephone call. Note that not all settings may even so be bachelor. See Configuration Loading Order for details.

  • fault( errorCode, [ additionalData ] )

    since four.5.4

    Error reporting part. When verbosity has VERBOSITY_ERROR flag set up, information technology fires log event with the type set to error. The fired effect also contains the provided errorCode and additionalData.

    See source

    Parameters

    errorCode : String

    Fault code describing the reported problem.

    [ additionalData ] : Object

    Boosted data associated with the reported problem.

  • burn down( eventName, [ information ], [ editor ] ) → Boolean | Object

    Fires an specific effect in the object. All registered listeners are chosen at this betoken.

    Encounter source

                        someObject.on( 'someEvent', role() { ... } ); someObject.on( 'someEvent', function() { ... } ); someObject.burn( 'someEvent' );             // Both listeners are chosen.  someObject.on( 'someEvent', office( result ) {     alert( issue.data );                    // 'Example' } ); someObject.burn( 'someEvent', 'Case' );                                      

    Parameters

    eventName : Cord

    The effect name to burn down.

    [ information ] : Object

    Data to be sent every bit the CKEDITOR.eventInfo.information when calling the listeners.

    [ editor ] : editor

    The editor instance to transport as the CKEDITOR.eventInfo.editor when calling the listener.

    Returns

    Boolean | Object

    A boolean indicating that the event is to be canceled, or data returned past ane of the listeners.

  • fireOnce( eventName, [ data ], [ editor ] ) → Boolean | Object

    Fires an specific event in the object, releasing all listeners registered to that issue. The same listeners are not called again on successive calls of it or of fire.

    See source

                        someObject.on( 'someEvent', function() { ... } ); someObject.burn down( 'someEvent' );         // Above listener called. someObject.fireOnce( 'someEvent' );     // Above listener called. someObject.fire( 'someEvent' );         // No listeners called.                                      

    Parameters

    eventName : Cord

    The event name to fire.

    [ information ] : Object

    Information to exist sent as the CKEDITOR.eventInfo.data when calling the listeners.

    [ editor ] : editor

    The editor instance to send every bit the CKEDITOR.eventInfo.editor when calling the listener.

    Returns

    Boolean | Object

    A booloan indicating that the event is to exist canceled, or data returned by i of the listeners.

  • getCss() → String

    Returns

    String

    A string containing CSS rules.

  • getTemplate( name )

    Parameters

    name : String

    The template name.

  • getTemplates( name ) → collectionDefinition

  • getUrl( resource ) → String

    Gets the full URL for CKEditor resources. Past default, URLs returned by this function contain a querystring parameter ("t") ready to the timestamp value.

    See source

    It is possible to provide a custom implementation of this part by setting a global variable named CKEDITOR_GETURL. This global variable must be ready before the editor script loading. If the custom implementation returns nothing (==null), the default implementation is used.

                        // due east.m. 'http://www.example.com/ckeditor/skins/default/editor.css?t=87dm' alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );  // e.g. 'http://world wide web.example.com/skins/default/editor.css?t=87dm' alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );  // e.k. 'http://www.somesite.com/skins/default/editor.css?t=87dm' alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );                                      

    Parameters

    resource : String

    The resources whose full URL nosotros want to get. It may be a total, absolute, or relative URL.

    Returns

    String

    The total URL.

  • hasListeners( eventName ) → Boolean

    Checks if there is any listener registered to a given consequence.

    See source

                        var myListener = function() { ... }; someObject.on( 'someEvent', myListener ); alert( someObject.hasListeners( 'someEvent' ) );    // true alarm( someObject.hasListeners( 'noEvent' ) );      // false                                      

    Parameters

    eventName : Cord

    The event name.

    Returns

    Boolean
  • inline( element, [ instanceConfig ] ) → editor

    Turns a DOM element with the contenteditable attribute ready to true into a CKEditor instance. Cheque CKEDITOR.dtd.$editable for a list of immune element names.

    Run across source

    Note: If the DOM chemical element for which inline editing is being enabled does not take the contenteditable aspect set to true or the config.readOnly configuration pick is prepare to false, the editor will get-go in read-only mode.

                        <div contenteditable="true" id="content">...</div> ... CKEDITOR.inline( 'content' );                                      

    It is likewise possible to create an inline editor from the <textarea> element. If yous exercise so, an additional <div> chemical element with editable content volition be created directly later on the <textarea> element and the <textarea> element will exist hidden.

    Parameters

    element : Object | Cord

    The DOM chemical element or its ID.

    [ instanceConfig ] : Object

    The specific configurations to apply to this editor example. Come across CKEDITOR.config.

    Returns

    editor

    The editor instance created.

  • inlineAll()

  • loadFullCore()

    Forces the full CKEditor core lawmaking, in the case only the basic code has been loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in the get-go call or as before long as the full code is available.

    Encounter source

                        // Check if the total core code has been loaded and load information technology. if ( CKEDITOR.loadFullCore )     CKEDITOR.loadFullCore();                                      
  • loadTemplates( templateFiles, callback )

    Loads files that contains templates' collection definition.

    Run into source

    Parameters

    templateFiles : Cord[]

    Array of files' paths.

    callback : Function

    Function to be run afterward loading all files.

  • on( eventName, listenerFunction, [ scopeObj ], [ listenerData ], [ priority ] ) → Object

    Registers a listener to a specific event in the current object.

    See source

                        someObject.on( 'someEvent', part() {     alert( this == someObject );        // truthful } );  someObject.on( 'someEvent', function() {     warning( this == anotherObject );     // true }, anotherObject );  someObject.on( 'someEvent', role( event ) {     alert( issue.listenerData );        // 'Example' }, nix, 'Instance' );  someObject.on( 'someEvent', function() { ... } );                       // 2nd called someObject.on( 'someEvent', role() { ... }, null, null, 100 );      // third called someObject.on( 'someEvent', function() { ... }, aught, goose egg, one );        // 1st called                                      

    Note: CKEditor'south event arrangement has a limitation that one function cannot be used as a listener for the same event more than than in one case. Hence, to reuse it with multiple listeners, it should be wrapped into additional wrapper function:

                        function listener( evt ) { ... };  someObject.on( 'someEvent', function() {     listener(); } );  someObject.on( 'someEvent', function( evt ) {     listener( evt ); } );                                      

    Parameters

    eventName : String

    The event name to which listen.

    listenerFunction : Office

    The function listening to the event. A single CKEDITOR.eventInfo object instanced is passed to this office containing all the event data.

    [ scopeObj ] : Object

    The object used to telescopic the listener call (the this object). If omitted, the electric current object is used.

    [ listenerData ] : Object

    Information to be sent as the CKEDITOR.eventInfo.listenerData when calling the listener.

    [ priority ] : Number

    The listener priority. Lower priority listeners are called showtime. Listeners with the same priority value are called in registration gild.

    Defaults to 10

    Returns

    Object

    An object containing the removeListener function, which can exist used to remove the listener at any fourth dimension.

  • once()

    Similiar with on but the listener will be called simply once upon the next event firing.

    See source

  • removeAllListeners()

    Remove all existing listeners on this object, for cleanup purpose.

    See source

  • removeListener( eventName, listenerFunction )

    Unregisters a listener part from existence chosen at the specified event. No errors are thrown if the listener has not been registered previously.

    See source

                        var myListener = office() { ... }; someObject.on( 'someEvent', myListener ); someObject.fire( 'someEvent' );                 // myListener called. someObject.removeListener( 'someEvent', myListener ); someObject.fire( 'someEvent' );                 // myListener not called.                                      

    Parameters

    eventName : String

    The event proper noun.

    listenerFunction : Function

    The listener role to unregister.

  • supersede( chemical element, [ config ] ) → editor

    Replaces a <textarea> or a DOM element (<div>) with a CKEditor example. For textareas, the initial value in the editor will exist the textarea value. For DOM elements, their innerHTML volition be used instead. It is recommended to utilize <textarea> and <div> elements only.

    See source

                        <textarea id="myfield" name="myfield"></textarea> ... CKEDITOR.replace( 'myfield' );  var textarea = document.body.appendChild( document.createElement( 'textarea' ) ); CKEDITOR.supersede( textarea );                                      

    Parameters

    element : Object | Cord

    The DOM chemical element (textarea), its ID, or proper noun.

    [ config ] : Object

    The specific configuration to apply to this editor instance. Configuration set here will override the global CKEditor settings (run across CKEDITOR.config).

    Returns

    editor

    The editor instance created.

  • replaceAll( [ className ], [ evaluator ] )

    Replaces all <textarea> elements available in the certificate with editor instances.

    Come across source

                        // Supervene upon all <textarea> elements in the page. CKEDITOR.replaceAll();  // Replace all <textarea class="myClassName"> elements in the page. CKEDITOR.replaceAll( 'myClassName' );  // Selectively supervene upon <textarea> elements, based on a custom evaluation function. CKEDITOR.replaceAll( role( textarea, config ) {     // A role that needs to exist evaluated for the <textarea>     // to be replaced. It must explicitly render "faux" to ignore a     // specific <textarea>.     // You tin can also customize the editor instance by having the office     // modify the "config" parameter. } );  // Full folio example where 3 <textarea> elements are replaced. <!DOCTYPE html> <html>     <head>         <meta charset="utf-eight">         <title>CKEditor</title>         <!-- Make certain the path to CKEditor is correct. -->         <script src="/ckeditor/ckeditor.js"></script>     </head>     <body>         <textarea proper noun="editor1"></textarea>         <textarea name="editor2"></textarea>         <textarea name="editor3"></textarea>         <script>             // Supervene upon all three <textarea> elements above with CKEditor instances.             CKEDITOR.replaceAll();         </script>     </torso> </html>                                      

    Parameters

    [ className ] : String

    The <textarea> class proper name.

    [ evaluator ] : Function

    An evaluation part that must return truthful for a <textarea> to be replaced with the editor. If the part returns false, the <textarea> element will not be replaced.

  • warn( errorCode, [ additionalData ] )

    since 4.5.4

    Warning reporting function. When verbosity has the VERBOSITY_WARN flag set, it fires the log event with type set to warn. Fired result contains also provided errorCode and additionalData.

    See source

    Parameters

    errorCode : String

    Error code describing reported problem.

    [ additionalData ] : Object

    Boosted data associated with reported trouble.

  • Parameters

    editor : editor

    The editor instance to be removed.

Static methods

  • implementOn( targetObject )

    mixed static

                      var myObject = { bulletin: 'Example' }; CKEDITOR.event.implementOn( myObject );  myObject.on( 'testEvent', role() {     alarm( this.message ); } ); myObject.burn down( 'testEvent' ); // 'Example'                                  

    Parameters

    targetObject : Object

    The object into which implement the features.

Events

  • ariaWidget( evt )

    Fired when a panel is added to the document.

    Come across source

    Parameters

    evt : eventInfo

    Properties

    data : Object

    The element wrapping the panel.

  • currentInstance( evt )

  • dialogDefinition( evt )

    Issue fired when a dialog definition is most to be used to create a dialog in an editor instance. This event makes it possible to customize the definition earlier creating information technology.

    See source

    Note that this event is called simply the beginning fourth dimension a specific dialog is opened. Successive openings will use the cached dialog, and this event will not get fired.

    Parameters

    evt : eventInfo

    Properties

    data : Object

    Properties

    name : String

    The name of the dialog.

    definition : definition

    The dialog definition that is being loaded.

    dialog : dialog

    A dialog instance that the definition is loaded for. Introduced in CKEditor 4.xiii.0.

    editor : editor

    The editor instance that will use the dialog.

  • instanceCreated( evt )

    Effect fired when a CKEDITOR instance is created, but even so before initializing it. To interact with a fully initialized case, apply the instanceReady consequence instead.

    See source

    Parameters

    evt : eventInfo

    Properties

    editor : editor

    The editor example that has been created.

  • instanceDestroyed( evt )

    Event fired when a CKEDITOR case is destroyed.

    See source

    Parameters

    evt : eventInfo

    Properties

    editor : editor

    The editor instance that has been destroyed.

  • instanceLoaded( evt )

    Event fired when CKEDITOR instance's components (configuration, languages and plugins) are fully loaded and initialized. Withal, the editor will be fully ready for interaction on instanceReady.

    See source

    Parameters

    evt : eventInfo

    Properties

    editor : editor

    This editor case that has been loaded.

  • instanceReady( evt )

    Event fired when a CKEDITOR example is created, fully initialized and ready for interaction.

    See source

    Parameters

    evt : eventInfo

    Properties

    editor : editor

    The editor instance that has been created.

  • loaded( evt )

    Fired when a CKEDITOR core object is fully loaded and ready for interaction.

    Meet source

    Parameters

    evt : eventInfo
  • Fired by warn and mistake methods. Default listener logs provided information to the console.

    See source

    This effect can be used to provide a custom fault/warning handler:

                                              CKEDTIOR.on( 'log', function( evt ) {             // Cancel default listener.             evt.cancel();             // Log event data.             console.log( evt.data.blazon, evt.data.errorCode, evt.information.additionalData );         } );                                      

    Parameters

    evt : eventInfo

    Properties

    data : Object

    Properties

    type : String

    Log blazon. Can be mistake or warn.

    errorCode : String

    Error code describing the reported trouble.

    [ additionalData ] : Object

    Additional data associated with this log event.

  • reset( evt )

    Fired when the last example has been destroyed. This upshot is used to perform global memory cleanup.

    See source

    Parameters

    evt : eventInfo

Cannot Read Property 'addcss' of Undefined Ckeditor

Source: https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html

0 Response to "Cannot Read Property 'addcss' of Undefined Ckeditor"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel