This commit is contained in:
2025-12-10 22:42:49 +01:00
parent e5fed53ac3
commit 3af929b6b5

View File

@@ -387,15 +387,6 @@ const buildPlaceholderHTML = (payload) => {
container.appendChild(form);
let tablesCache = placeholderSchemaStore.tables || [];
if (tablesCache.length) {
populateTables(tablesCache);
} else if (placeholderSchemaStore.promise) {
placeholderSchemaStore.promise.then(populateTables).catch(() => populateTables([]));
} else if (placeholderSchemaStore.status !== false) {
fetchPlaceholderSchema()
.then(populateTables)
.catch(() => populateTables([]));
}
const toggleSections = () => {
const type = typeSelect.value || 'custom';
@@ -587,7 +578,7 @@ const buildPlaceholderHTML = (payload) => {
rte.__bridgePlaceholderButton = true;
rte.add('bridge-placeholder', {
icon: '<i class="fa fa-bookmark"></i>',
icon: '<span style="font-weight:bold;font-family:monospace;">{}</span>',
attributes: { title: 'Placeholder einfügen' },
result: (rteInstance) => {
const target = editor && editor.getSelected && editor.getSelected();