toolbar
This commit is contained in:
parent
214a840d8a
commit
7c684be671
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<!-- تولبار ادیتور -->
|
<!-- تولبار ادیتور -->
|
||||||
<div class="editor-toolbar" v-if="editor">
|
<!-- <div class="editor-toolbar" v-if="editor">
|
||||||
<div
|
<div
|
||||||
class="toolbar-group"
|
class="toolbar-group"
|
||||||
v-for="(group, gIndex) in toolbarGroups"
|
v-for="(group, gIndex) in toolbarGroups"
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<span class="toolbar-icon">{{ btn.icon }}</span>
|
<span class="toolbar-icon">{{ btn.icon }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<editor-content :editor="editor" class="editor-content" />
|
<editor-content :editor="editor" class="editor-content" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -275,8 +275,7 @@ function generateDetailsHtml(item) {
|
||||||
function loadFromJson() {
|
function loadFromJson() {
|
||||||
if (!editor.value) return;
|
if (!editor.value) return;
|
||||||
|
|
||||||
let html =
|
let html = "";
|
||||||
'<p style="margin-bottom: 1.5rem; color: var(--color-dark-primary-700);"></p>';
|
|
||||||
|
|
||||||
props.accordionData.forEach((item) => {
|
props.accordionData.forEach((item) => {
|
||||||
html += generateDetailsHtml(item);
|
html += generateDetailsHtml(item);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user