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
The <AttachFile/> component is added to toolbarPlugin.toolbarContents (it has <CreateLink /> as well). linkPlugin() and linkDialogPlugin() are also present.
A modal window should be shown where the user can select the file from his device/computer and have an optional text field.
What is the correct way to show that modal from handleClick?
Right now when editor doesn't have the focus and I click on attach file button, the link preview modal is shown. How can I detect that the editor doesn't have focus and skip the call to updateLink?
I would like the upload file to work like the upload image functionality, but generate the link markup.
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
-
Hi,
I'd like to add an upload file button to toolbar.
The button looks something like this:
The
<AttachFile/>
component is added totoolbarPlugin.toolbarContents
(it has<CreateLink />
as well).linkPlugin()
andlinkDialogPlugin()
are also present.text
field.What is the correct way to show that modal from
handleClick
?updateLink
?I would like the upload file to work like the upload image functionality, but generate the link markup.
Beta Was this translation helpful? Give feedback.
All reactions