Webanizr Logo
Open / sluit menu
Module ckEditor

Last change: March 9, 2020

Current version: 1.3.3

The module CKEditor loads a CKEditor editor on your website. In addition to calling the module you need to add a script to the head of your document. The module will send instructions on the first call.

syntax

webanizr.collect('ckEditor', parameters, callback);

parameters

Quill accepts the following parameters:

name__textarea (required)

The name of the textarea that needs to be converted to a CKEditor.

preset__toolbar (optional)

Generates a toolbar with less buttons using the configuration that preset in the module. Current preset options and list of buttons:

description : bold, italic, underlined, paragraph format(heading 1-6 etc), numbered list, bulleted list, justify left, justify center, justify right, justify block, link, unlink.

config__toolbar (optional)

The configuration of the toolbar for the editor. You can configure your own toolbar on https://ckeditor.com/latest/samples/toolbarconfigurator/index.html#advanced.

run__onchange

A script that runs whenever the content in the ckEditor changes. The script is given as an string. In the script you can use this.value to get the latest value of the ckEditor

callback

The callback is called after the editor is loaded. The callback function is called with empty data.

demo

https://cdn.cpmodules.webanizr.com/demo/text-editor/index.html

Changelog

  • March 09, 2020: 1.3.3 - updated the order of the buttons in description preset
  • March 05, 2020: 1.3.2 - changed the ckeditor version from standard to full
  • March 04, 2020: 1.3.1 - removed console.log()s
  • March 04, 2020: 1.3.0 - added preset__toolbar parameter
  • February 28, 2020: 1.2.0 - ??
  • September 5, 2019: 1.2.0 - added the config__toolbar parameter