ESP32 Platform Documentation

TextEditorCKEditorGPL extends TextEditor
in package

Implements the CKEditor GPL version using a apiKey.

Tags
example
// Controller:
$this->data['text_editor'] = service('text_editor');

// View:
// header:
<?=service('text_editor')->load_style()?>

// footer:
<?=$text_editor->load_script()?>
<script {csp-script-nonce}>
	$(document).ready(function () {
		<?=$text_editor->init_script()?>
		<?=$text_editor->assign_editor('"#id_of_textarea"')?>
let value = <?=$text_editor->get('#id_of_textarea"')?>
	});
</script>

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

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.


        
On this page

Search results