tiptapify 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -115,13 +115,11 @@ export function editorExtensions (placeholder: string, slashCommands: boolean, c
|
|
|
115
115
|
|
|
116
116
|
if (customExtensions.length) {
|
|
117
117
|
for (const customExtension of customExtensions) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
extensions.push(extension)
|
|
124
|
-
}
|
|
118
|
+
if (typeof customExtension.extensions === 'undefined') {
|
|
119
|
+
continue
|
|
120
|
+
}
|
|
121
|
+
for (const extension of customExtension.extensions) {
|
|
122
|
+
extensions.push(extension)
|
|
125
123
|
}
|
|
126
124
|
}
|
|
127
125
|
}
|
|
@@ -13,13 +13,13 @@ export enum ToolbarSectionsEnum {
|
|
|
13
13
|
export type sectionComponent = {
|
|
14
14
|
name: string,
|
|
15
15
|
component: any,
|
|
16
|
-
extensions?: Array<any>,
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export type section = {
|
|
20
19
|
section: string,
|
|
21
20
|
group: boolean,
|
|
22
21
|
components: sectionComponent[],
|
|
22
|
+
extensions?: Array<any>,
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export type toolbarSections = Array<section>
|