From 541720bf50a6e3389e7a82fe4aa505f0f606b2c0 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 1 Aug 2021 18:51:25 +0200 Subject: [PATCH] Extended widget API 'force' option to React and PlainJS --- src/editor/widgets/index.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/widgets/index.jsx b/src/editor/widgets/index.jsx index 3a6fb6f..12bd001 100644 --- a/src/editor/widgets/index.jsx +++ b/src/editor/widgets/index.jsx @@ -68,6 +68,8 @@ export const getWidget = arg => { // Plugin if (force?.toLowerCase() === 'react') { return React.createElement(widget, config); + } else if (force?.toLowerCase() === 'plainjs') { + return } else { // Auto-detect if (isReactComponent(widget)) {