TextEditorCKEditorCDN
extends TextEditor
in package
Implements the CKEditor CDN version using a apiKey.
Tags
Table of Contents
Properties
- $apiKey : string
Methods
- assign_editor() : string
- Use this wrapper in the view template to create a new textarea instance
- get() : string
- Use this wrapper in the view template to get the value of a textarea
- init_script() : string
- Sets up the functions required to create a new instance of a textarea
- load_script() : string
- Loads or imports the external javascript libaries.
- load_style() : string
- Loads the stylesheet.
Properties
$apiKey
protected
string
$apiKey
= "eyJhbGciOiJFUzI1NiJ9.eyJleHAiOjE3NzA0MjIzOTksImp0aSI6IjdiNzA0MzZhLWE2MDMtNGI2Yi1hOGQxLTJmYzk3MWEzYmIxYyIsImxpY2Vuc2VkSG9zdHMiOlsiMTI3LjAuMC4xIiwibG9jYWxob3N0IiwiMTkyLjE2OC4qLioiLCIxMC4qLiouKiIsIjE3Mi4qLiouKiIsIioudGVzdCIsIioubG9jYWxob3N0IiwiKi5sb2NhbCJdLCJ1c2FnZUVuZHBvaW50IjoiaHR0cHM6Ly9wcm94eS1ldmVudC5ja2VkaXRvci5jb20iLCJkaXN0cmlidXRpb25DaGFubmVsIjpbImNsb3VkIiwiZHJ1cGFsIl0sImxpY2Vuc2VUeXBlIjoiZGV2ZWxvcG1lbnQiLCJmZWF0dXJlcyI6WyJEUlVQIiwiQk9YIl0sInZjIjoiZDYwZjUzMDUifQ.z2QBK-JsDzcivBdrBMos8JHYhKbS4nUDXdFJkRtnmpyThmyA9JEfG5mFfGjIN8pZCdtrTYrirVWdxKcm5Ptkhw"
Methods
assign_editor()
Use this wrapper in the view template to create a new textarea instance
public
assign_editor(string $dom_id) : string
Parameters
- $dom_id : string
-
The DOM ID of the element, includes #.
Return values
string —The javascript syntax
get()
Use this wrapper in the view template to get the value of a textarea
public
get(string $dom_id) : string
Parameters
- $dom_id : string
-
The DOM ID of the element, includes #.
Return values
string —The javascript syntax
init_script()
Sets up the functions required to create a new instance of a textarea
public
init_script() : string
Return values
string —The javascript functions and arrays.
load_script()
Loads or imports the external javascript libaries.
public
load_script() : string
On pages that use wysiwyg textareas, this is called before the <script> tag
Return values
string —The HTML script tag of external javascript libaries.
load_style()
Loads the stylesheet.
public
load_style() : string
This is placed in the header
Return values
string —The HTML link tag.