this.#toolbar.push(this.#divider);
}
+ #setupMention(): void {
+ if (!this.#features.mention) {
+ this.#removePlugins.push("Mention", "WoltlabMention");
+ }
+ }
+
#getToolbar(): ToolbarConfig {
let allowDivider = false;
const toolbar = this.#toolbar.filter((item) => {
this.#setupBlocks();
this.#insertDivider();
+
+ this.#setupMention();
}
toConfig(): EditorConfig {
#insertDivider() {
this.#toolbar.push(this.#divider);
}
+ #setupMention() {
+ if (!this.#features.mention) {
+ this.#removePlugins.push("Mention", "WoltlabMention");
+ }
+ }
#getToolbar() {
let allowDivider = false;
const toolbar = this.#toolbar.filter((item) => {
this.#setupImage();
this.#setupBlocks();
this.#insertDivider();
+ this.#setupMention();
}
toConfig() {
// TODO: The typings are both incompleted and outdated.