{jsphrase name='wcf.ckeditor.quote'}
{jsphrase name='wcf.ckeditor.quote.author'}
{jsphrase name='wcf.ckeditor.quoteFrom'}
- {jsphrase name='wcf.editor.button.group.block'}
{jsphrase name='wcf.editor.button.group.format'}
{jsphrase name='wcf.editor.button.group.list'}
{jsphrase name='wcf.editor.button.spoiler'}
}
#setupBlocks(): void {
- const items: string[] = [];
-
if (this.#features.table) {
- items.push("insertTable");
+ this.#toolbar.push("insertTable");
} else {
this.#removePlugins.push("Table", "TableToolbar");
}
- items.push(this.#divider);
-
if (this.#features.quoteBlock) {
- items.push("blockQuote");
+ this.#toolbar.push("blockQuote");
} else {
this.#removePlugins.push("BlockQuote", "WoltlabBlockQuote");
}
if (this.#features.spoiler) {
- items.push("spoiler");
+ this.#toolbar.push("spoiler");
} else {
this.#removePlugins.push("WoltlabSpoiler");
}
if (this.#features.html) {
- items.push("htmlEmbed");
+ this.#toolbar.push("htmlEmbed");
} else {
this.#removePlugins.push("HtmlEmbed");
}
-
- if (items.length > 0) {
- this.#toolbar.push({
- label: getPhrase("wcf.editor.button.group.block"),
- icon: "plus",
- items,
- });
- }
}
#insertDivider(): void {
{jsphrase name='wcf.ckeditor.quote'}
{jsphrase name='wcf.ckeditor.quote.author'}
{jsphrase name='wcf.ckeditor.quoteFrom'}
- {jsphrase name='wcf.editor.button.group.block'}
{jsphrase name='wcf.editor.button.group.format'}
{jsphrase name='wcf.editor.button.group.list'}
{jsphrase name='wcf.editor.button.spoiler'}
}
}
#setupBlocks() {
- const items = [];
if (this.#features.table) {
- items.push("insertTable");
+ this.#toolbar.push("insertTable");
}
else {
this.#removePlugins.push("Table", "TableToolbar");
}
- items.push(this.#divider);
if (this.#features.quoteBlock) {
- items.push("blockQuote");
+ this.#toolbar.push("blockQuote");
}
else {
this.#removePlugins.push("BlockQuote", "WoltlabBlockQuote");
}
if (this.#features.spoiler) {
- items.push("spoiler");
+ this.#toolbar.push("spoiler");
}
else {
this.#removePlugins.push("WoltlabSpoiler");
}
if (this.#features.html) {
- items.push("htmlEmbed");
+ this.#toolbar.push("htmlEmbed");
}
else {
this.#removePlugins.push("HtmlEmbed");
}
- if (items.length > 0) {
- this.#toolbar.push({
- label: (0, Language_1.getPhrase)("wcf.editor.button.group.block"),
- icon: "plus",
- items,
- });
- }
}
#insertDivider() {
this.#toolbar.push(this.#divider);
background-color: var(--wcfButtonPrimaryBackgroundActive);
}
}
-
- .ck.ck-toolbar__items .ck.ck-button:not(.ck-disabled, .ck-on):hover {
- background: var(--ck-color-button-default-background);
- color: var(--ck-color-text);
- }
}
.ck-body-wrapper {
<item name="wcf.editor.table.rows"><![CDATA[Zeilen]]></item>
<item name="wcf.editor.button.article"><![CDATA[CMS-Artikel]]></item>
- <item name="wcf.editor.button.group.block"><![CDATA[Block einfügen]]></item>
<item name="wcf.editor.button.group.format"><![CDATA[Text formatieren]]></item>
<item name="wcf.editor.button.group.list"><![CDATA[Listen]]></item>
<item name="wcf.editor.button.media"><![CDATA[Media]]></item>
<item name="wcf.user.objectWatch.subscribe.com.woltlab.wcf.article.category"/>
<item name="wcf.user.objectWatch.enableNotification.com.woltlab.wcf.article.category"/>
<item name="wcf.user.objectWatch.unsubscribe.com.woltlab.wcf.article.category"/>
+ <item name="wcf.editor.button.group.block"/>
</delete>
</language>
<item name="wcf.editor.table.rows"><![CDATA[Rows]]></item>
<item name="wcf.editor.button.article"><![CDATA[CMS Article]]></item>
- <item name="wcf.editor.button.group.block"><![CDATA[Insert Block]]></item>
<item name="wcf.editor.button.group.format"><![CDATA[Format Text]]></item>
<item name="wcf.editor.button.group.list"><![CDATA[Lists]]></item>
<item name="wcf.editor.button.media"><![CDATA[Media]]></item>
<item name="wcf.user.objectWatch.subscribe.com.woltlab.wcf.article.category"/>
<item name="wcf.user.objectWatch.enableNotification.com.woltlab.wcf.article.category"/>
<item name="wcf.user.objectWatch.unsubscribe.com.woltlab.wcf.article.category"/>
+ <item name="wcf.editor.button.group.block"/>
</delete>
</language>