How to get FxNodePreviewWithLinkSelector
import FxNodePreviewWithLinkSelector from 'fontoxml-fx/src/FxNodePreviewWithLinkSelector.jsx'
Makes a preview of a loaded document in the editor in which a node can be selected. This can also be a preview of a node inside the given document. The preview is less compact styled than the normal document view and will get a scrollbar if the preview is too long.
If the document wasn't already opened in the editor, than use the FxDocumentLoader to load it for the preview.
The selected node in the preview, will also be shown in an information drawer and will be scrolled in to view when the component is mounted.
The document ID of the document to preview
A callback that is called whenever the user clicks on a node in the preview. This node must meet the requirements of the
Returns all nodes that can be selected in the preview, starting from the documents first node.
For example use '//*' to select all nodes with an
Note that unlike other "selector" properties, this is actually a query. The name is kept for compatibility.
The selectedNode will be highlighted (selected) in the preview.
When provided will show a preview for a single node instead of a full document.