Loading editor/html/css/editor.css +15 −0 Original line number Diff line number Diff line Loading @@ -131,6 +131,21 @@ body { flex-shrink: 0; } #add-position-bar { display: flex; gap: 12px; padding: 4px 8px; font-size: 12px; color: var(--text-secondary); } #add-position-bar label { cursor: pointer; display: flex; align-items: center; gap: 3px; } #widget-list { padding: 8px; display: flex; Loading editor/html/index.html +4 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,10 @@ <aside id="sidebar-left"> <div id="widget-palette"> <h3 data-i18n="I18N_TOOLBOX">Widgets</h3> <div id="add-position-bar"> <label><input type="radio" name="add-position" value="child" checked> <span data-i18n="I18N_AS_CHILD">Kind</span></label> <label><input type="radio" name="add-position" value="after"> <span data-i18n="I18N_AFTER">Danach</span></label> </div> <div id="widget-list"></div> </div> <div id="document-tree-panel"> Loading editor/html/js/editor.js +5 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,11 @@ function addWidget(pluginName) { var parentUuid = DocumentTree.getSelectedUuid() || ''; var position = parentUuid ? 'child' : ''; var position = ''; if (parentUuid) { var posRadio = document.querySelector('input[name="add-position"]:checked'); position = posRadio ? posRadio.value : 'child'; } EditorApi.addElement(pluginName, parentUuid, position).then(function() { refreshDocument(); Loading Loading
editor/html/css/editor.css +15 −0 Original line number Diff line number Diff line Loading @@ -131,6 +131,21 @@ body { flex-shrink: 0; } #add-position-bar { display: flex; gap: 12px; padding: 4px 8px; font-size: 12px; color: var(--text-secondary); } #add-position-bar label { cursor: pointer; display: flex; align-items: center; gap: 3px; } #widget-list { padding: 8px; display: flex; Loading
editor/html/index.html +4 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,10 @@ <aside id="sidebar-left"> <div id="widget-palette"> <h3 data-i18n="I18N_TOOLBOX">Widgets</h3> <div id="add-position-bar"> <label><input type="radio" name="add-position" value="child" checked> <span data-i18n="I18N_AS_CHILD">Kind</span></label> <label><input type="radio" name="add-position" value="after"> <span data-i18n="I18N_AFTER">Danach</span></label> </div> <div id="widget-list"></div> </div> <div id="document-tree-panel"> Loading
editor/html/js/editor.js +5 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,11 @@ function addWidget(pluginName) { var parentUuid = DocumentTree.getSelectedUuid() || ''; var position = parentUuid ? 'child' : ''; var position = ''; if (parentUuid) { var posRadio = document.querySelector('input[name="add-position"]:checked'); position = posRadio ? posRadio.value : 'child'; } EditorApi.addElement(pluginName, parentUuid, position).then(function() { refreshDocument(); Loading