wwrite has a pretty simple file structure. You can support the dropping of wwrite files within your app. There are a few things that are needed to support this.
Define a type is named "com.waynedixon.wwrite.Type-DragFile"
Set your drop targets to be able to accept the type defined in step 1.
File Structure
The drag files have a few properties that you should be able to read, or write to. These are:
vartext: String - text of the file
varname: String - name of the file
vartype: DefinedType - from above
letversion: Int=1 - Type used for importing or indicating the version of the file.
wwrite Template Files
The template files are a bit more complex than the files, but it is still a pretty simple structure. You can support the dropping of wwrite template within your app. There are a few things that are needed to support this.
Define a type is named "com.waynedixon.wwrite.Type-DragTemplate"
Set your drop targets to be able to accept the type defined in step 1.
Template Structure
The drag templates have a few properties that you should be able to read, or write to. These are:
vartext: String? - text of the template
varname: String? - name of the template
vartype: DefinedType, from above
varbgRed: Float - background red float value
varbgGreen: Float - background green float value
varbgBlue: Float - background blue float value
varbgAlpha: Float - background alpha float value
varfontRed: Float - font red float value
varfontGreen: Float - font green float value
varfontBlue: Float - font blue float value
letversion: Int=1 - Type used for importing or indicating the version of the template.
Assistance
If you need any assistance implementing the files or templates, just reach out to support.