{% set selected_theme = getOption('editor.current.theme') %} {% set editor_mode = getOption('editor.mode') %}
{{ labels.theme }} {{ component('system:admin.templates.dropdown',{ skip: ['system'], selected: selected_theme }) }}
{{ labels.mode }}
{% if selected_theme is not empty %} {% if editor_mode == false or editor_mode is empty %} {{ component('editor::admin.editor.simple',{ theme_name: selected_theme }) }} {% else %} {{ component('editor::admin.editor.menu',{ theme_name: selected_theme }) }} {% endif %} {% endif %}