SkawaCkeditorComponent class

Simple CKEditor wrapper component.

Note: CKEditor component uses ckeditor.js, make sure it is available, this component compatible with the 4.* version

Example usage:

<skawa-ckeditor editorName="editor"
    [extraPlugins]="[ somePlugin ]"
    configUrl="/ckeditor/config.js"
    (change)="editorChanged($event)">
</skawa-ckeditor>

Events:

  • change: String -- Triggered when editor content changes

Properties:

  • editorName: String -- element CSS selector to replace with CKEditor, this should be unique
  • extraPlugins: List<ExtraPlugin> -- extra plugins to load with CKEditor
  • configUrl: String -- url of the config file to load for CKEditor
  • content: String -- initial value of editor
Annotations
  • @Component(selector: 'skawa-ckeditor', templateUrl: 'ckeditor.html', changeDetection: ChangeDetectionStrategy.OnPush)

Constructors

SkawaCkeditorComponent()

Properties

config Map<String, dynamic>
@Input()read / write
configUrl String
@Input()read / write
content String
@Input()read / write
editorName String
@Input()read / write
extraPlugins List<ExtraPlugin>
@Input()read / write
hashCode int
The hash code for this object.
read-onlyinherited
onChange Stream<String>
@Output('change')read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value String
read-only

Methods

ngAfterViewInit() → void
override
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited