You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a few custom tools. An image tool for uploading local images and a Layout tool. I tried to connect the plugin I had created and the tool. But I couldn't properly get it done. I have created a sample plugin and a respective element. In this case a columns plugin like below
I added that columns plugin to createPlugins() list where all plugins are added and all plugins are passed to the Plate component.
I can render my plugin if I use that element as initialValue. But connecting that to a tool and adding this element on the columns button click is not clear.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to create a few custom tools. An image tool for uploading local images and a Layout tool. I tried to connect the plugin I had created and the tool. But I couldn't properly get it done. I have created a sample plugin and a respective element. In this case a columns plugin like below
I added that columns plugin to
createPlugins()
list where all plugins are added and all plugins are passed to the Plate component.I can render my plugin if I use that element as
initialValue
. But connecting that to a tool and adding this element on the columns button click is not clear.columnsPlugin.tsx
columns-element.tsx
I'm using fixed-toolbar-buttons.tsx as the toolbar. I added a custom button for adding columns. But doesn't work when I click it.
The guide from the documentation is not clear to me. Please help me to create plugins. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions