autosave: element.dataset.autosave || "",
code: true,
codeBlock: true,
+ fontColor: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('color')}true{else}false{/if},
+ fontFamily: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('font')}true{else}false{/if},
+ fontSize: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('size')}true{else}false{/if},
heading: true,
html: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('html')}true{else}false{/if},
image: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}true{else}false{/if},
this.#removePlugins.push("Superscript");
}
+ if (this.#features.fontColor) {
+ items.push("fontColor");
+ } else {
+ this.#removePlugins.push("FontColor");
+ }
+
+ if (this.#features.fontFamily) {
+ items.push("fontFamily");
+ } else {
+ this.#removePlugins.push("FontFamily");
+ }
+
+ if (this.#features.fontSize) {
+ items.push("fontSize");
+ } else {
+ this.#removePlugins.push("FontSize");
+ }
+
if (this.#features.code) {
items.push("code");
} else {
},
language,
removePlugins: this.#removePlugins,
+ fontFamily: {
+ options: [
+ "default",
+ "Arial, Helvetica, sans-serif",
+ "Comic Sans MS, Marker Felt, cursive",
+ "Consolas, Courier New, Courier, monospace",
+ "Georgia, serif",
+ "Lucida Sans Unicode, Lucida Grande, sans-serif",
+ "Tahoma, Geneva, sans-serif",
+ "Times New Roman, Times, serif",
+ 'Trebuchet MS", Helvetica, sans-serif',
+ "Verdana, Geneva, sans-serif",
+ ],
+ },
+ fontSize: {
+ options: [8, 10, 12, "default", 18, 24, 36],
+ },
toolbar: this.#getToolbar(),
woltlabToolbarGroup: this.#toolbarGroups,
} as any;
autosave: string;
code: boolean;
codeBlock: boolean;
+ fontColor: boolean;
+ fontFamily: boolean;
+ fontSize: boolean;
heading: boolean;
html: boolean;
image: boolean;
autosave: element.dataset.autosave || "",
code: true,
codeBlock: true,
+ fontColor: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('color')}true{else}false{/if},
+ fontFamily: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('font')}true{else}false{/if},
+ fontSize: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('size')}true{else}false{/if},
heading: true,
html: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('html')}true{else}false{/if},
image: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}true{else}false{/if},
else {
this.#removePlugins.push("Superscript");
}
+ if (this.#features.fontColor) {
+ items.push("fontColor");
+ }
+ else {
+ this.#removePlugins.push("FontColor");
+ }
+ if (this.#features.fontFamily) {
+ items.push("fontFamily");
+ }
+ else {
+ this.#removePlugins.push("FontFamily");
+ }
+ if (this.#features.fontSize) {
+ items.push("fontSize");
+ }
+ else {
+ this.#removePlugins.push("FontSize");
+ }
if (this.#features.code) {
items.push("code");
}
},
language,
removePlugins: this.#removePlugins,
+ fontFamily: {
+ options: [
+ "default",
+ "Arial, Helvetica, sans-serif",
+ "Comic Sans MS, Marker Felt, cursive",
+ "Consolas, Courier New, Courier, monospace",
+ "Georgia, serif",
+ "Lucida Sans Unicode, Lucida Grande, sans-serif",
+ "Tahoma, Geneva, sans-serif",
+ "Times New Roman, Times, serif",
+ 'Trebuchet MS", Helvetica, sans-serif',
+ "Verdana, Geneva, sans-serif",
+ ],
+ },
+ fontSize: {
+ options: [8, 10, 12, "default", 18, 24, 36],
+ },
toolbar: this.#getToolbar(),
woltlabToolbarGroup: this.#toolbarGroups,
};