Current section
Files
Jump to
Current section
Files
priv/templates/_editor.tpl
{#
This template maintains the newest tinymce version.
params:
overrides_tpl: (optional) template location that contains JavaScript overrides for tinymce init
#}
{% wire name="zmedia"
action={
dialog_open
intent="connect"
template="_action_dialog_connect.tpl"
title=_"Insert image"
width="large"
subject_id=id
predicate=`depiction`
is_zmedia
tab="depiction"
tabs_disabled="new"
callback="window.zAdminMediaDone"
center=0
autoclose
}
%}
{% wire name="zlink"
action={
dialog_open
intent="select"
template="_action_dialog_connect.tpl"
title=_"Add link"
width="large"
subject_id=id
is_zlink
tab="find"
callback="window.zAdminLinkDone"
center=0
autoclose
}
%}
{% with
"4.9.3",
m.editor_tinymce.version
as
newest,
config
%}
{% with
(config == "newest" or config|is_undefined)|if:newest:config
as
version
%}
{% include
"tinymce-" ++ version ++ "/_editor.tpl"
overrides_tpl=overrides_tpl|default:"_admin_tinymce_overrides_js.tpl"
is_editor_include=is_editor_include
id=id
%}
{% endwith %}
{% endwith %}