TextEditorSummernote
extends TextEditor
in package
Implements the free Summernote CDN version.
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
= ""
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.