
Frontend Editor
Edit content without opening the Manager


Frontend Editor is a plugin that lets you edit content without opening the Manager. It includes TinyMCE 5 for editing.

Install the extra. Wrap fields you want to edit in an element with data-frontendeditor and the field name as the value:
<div data-frontendeditor="content">
[[*content]]
</div>Allowed values: content, pagetitle, longtitle, menutitle, description, introtext
Use tv- plus the TV name:
<div data-frontendeditor="tv-myTvField">
[[*myTvField]]
</div>For each field you can use TinyMCE tinymce (default) or a simple input simple:
<div data-frontendeditor="tv-myTvField, simple">
[[*myTvField]]
</div>To edit another resource's fields, pass its id as the first option. Useful for editable menus, breadcrumbs, etc.
Example: edit pagetitle for resource id 2:
<a href="/index.php?id=2" data-frontendeditor="2, pagetitle, simple">
[[pdoField? &id=`2` &field=`pagetitle`]]
</a>Editable menu example:
[[pdoMenu?
&parents=`0`
&tpl=`@INLINE <li><a href="[[+link]]" data-frontendeditor="[[+id]], menutitle, simple">[[+menutitle]]</a>[[+wrapper]]</li>`
]]For empty menutitle fields, the editor shows pagetitle and saves to menutitle. This can be changed; see extra settings.
<!DOCTYPE html>.

