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've set up some custom toolbar, that enters text in the editor, what is the recommend approach to add a keyboard shortcut for this? create a plugin?
constPickUpDocument=()=>{constinsertDirective=usePublisher(insertDirective$);return(<divclassName={toolbarButtonClassWrapperClass}onClick={()=>docPicker.show({onSelect: (selectedDoc)=>{console.log(selectedDoc);insertDirective({name: "doc",type: "textDirective",attributes: {id: selectedDoc._id}});}})}><divclassName="flex items-center gap-1"data-tooltip-id="gdd-toolbar-pick-document"data-tooltip-content="Insert a Link to a Document"><AiOutlineDeliveredProceduresize={20}/></div></div>);
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've set up some custom toolbar, that enters text in the editor, what is the recommend approach to add a keyboard shortcut for this? create a plugin?
Beta Was this translation helpful? Give feedback.
All reactions