@pie-lib/editable-html-tip-tap 1.0.0 → 1.0.2
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/lib/extensions/component.js +10 -2
- package/lib/index.js +430 -146
- package/lib/plugins/index.js +3 -3
- package/package.json +2 -2
- package/src/extensions/component.jsx +11 -3
- package/src/index.jsx +384 -404
- package/src/plugins/index.jsx +1 -1
package/src/plugins/index.jsx
CHANGED
|
@@ -281,7 +281,7 @@ export const buildPlugins = (activePlugins, customPlugins, opts) => {
|
|
|
281
281
|
|
|
282
282
|
activePlugins = activePlugins || DEFAULT_PLUGINS;
|
|
283
283
|
|
|
284
|
-
const addIf = (key
|
|
284
|
+
const addIf = (key) => activePlugins.includes(key) && key;
|
|
285
285
|
|
|
286
286
|
const imagePlugin = opts.image && opts.image.onDelete && ImagePlugin(opts.image);
|
|
287
287
|
const mathPlugin = opts.math && MathPlugin(opts.math);
|