TinyMCE 6NEW
1.7.32 Bootstrap theme
Upgraded the bundled visual editor from TinyMCE 4.1.2 (2014) to 6.8.6 - self-hosted, MIT-licensed, no API key needed. Set with a texteditor field type; Xcrud_config::$editor_url points at the bundled build by default.
HIDE CODE
<?php
$xcrud = Xcrud::get_instance();
// Visual/rich-text editor for a text field - set via
// Xcrud_config::$editor_url (defaults to the bundled TinyMCE), or
// switched to CKEditor per-page (see the "CKEditor and custom" demo).
$xcrud->table('base_fields');
$xcrud->fields("text,text_editor");
$xcrud->label("text", "Title");
$xcrud->label("text_editor", "Content");
$xcrud->change_type("text_editor", "texteditor");
$xcrud->fields_arrange("text,text_editor", "Article", true);
echo $xcrud->render('create');
?>