sadsa
This commit is contained in:
@@ -387,15 +387,6 @@ const buildPlaceholderHTML = (payload) => {
|
|||||||
container.appendChild(form);
|
container.appendChild(form);
|
||||||
|
|
||||||
let tablesCache = placeholderSchemaStore.tables || [];
|
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 toggleSections = () => {
|
||||||
const type = typeSelect.value || 'custom';
|
const type = typeSelect.value || 'custom';
|
||||||
@@ -587,7 +578,7 @@ const buildPlaceholderHTML = (payload) => {
|
|||||||
|
|
||||||
rte.__bridgePlaceholderButton = true;
|
rte.__bridgePlaceholderButton = true;
|
||||||
rte.add('bridge-placeholder', {
|
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' },
|
attributes: { title: 'Placeholder einfügen' },
|
||||||
result: (rteInstance) => {
|
result: (rteInstance) => {
|
||||||
const target = editor && editor.getSelected && editor.getSelected();
|
const target = editor && editor.getSelected && editor.getSelected();
|
||||||
|
|||||||
Reference in New Issue
Block a user