Command
or DropHandler
in your plugin which creates BlockNodes with the types 'ximimage'
or 'ximpdf'
Command
or DropHandler
in your plugin which calls the function api.editorSession.fileManager.sync
Uncaught Error: Property fileNodeId is mandatory for node type ximimage
tx.insertBlockNode
is called and replace the following property, depending on the node type:imageFile: <your value>
with fileNodeId: <your value>
. pdfFile: <your value>
with fileNodeId: <your value>
. api.editorSession.fileManager.sync
fileManager.sync is deprecated, please refer to the Naviga Writer 8.0 release overview for upgrade guide and fix
'ximimage'
or 'ximpdf'
.fileManager.upload
has been created. This method takes an array of node Ids, and if the nodes created are image or pdf types, it should be as simple as replacing the function called:fileTrait
imported from the writer module. imageNodeTrait
and imageCropTrait
to add utility functions used by images. fileTrait
as a parameter to withTraits
function and rename the Node property defined as {type: 'file'}
to fileNodeId
.fileManager.upload([nodeId])
function is called and the file upload completes/fails an event will be emitted on the Node. Add onFailedUpload
and onUploaded
functions to your Node class to handle the response.