fontoxml-clipboard-instruction-modal

Clipboard instruction

This add-on provides a modal that shows up when the user clicks the β€œPaste” button. It explains that, due to limitations enforced by modern browsers for security reasons, Fonto can not access the clipboard for pasting when clicking a button, and the user must press a keyboard shortcut to paste content instead.

How to integrate this add-on

This add-on provides a single operation named paste, which can be used alongside the cut and copy operations provided by the platform to implement the familiar clipboard buttons in your toolbar:

<MastheadToolbar>
	<MastheadToolbarButtons>
		<FxOperationButton label="" operationName="cut" />
		<FxOperationButton label="" operationName="copy" />
		<FxOperationButton label="" operationName="paste" />
	</MastheadToolbarButtons>

	...

</MastheadToolbar>


APIs in fontoxml-clipboard-instruction-modal

Was this page helpful?