Hi,
I'm developing connect plugin for Bitbucket Cloud which adds a custom file viewer and editor.
Its pretty straightforward to add those 2 but I'm stuck now with committing the file once edited in custom editor as I'm not able to access resources outside editor iframe.
In the connect Json I'm adding editor module
"fileEditors": [{
"key": "custom-editor",
"name": {
"value": "Custom view"
},
"url": "/custom-editor.html?repo={repo_uuid}&cset={file_cset}&path={file_path}&name={file_name}",
"file_matches" : {
"extensions" : [ "custom-extension" ]
}
}]
Is the any sort of event I can trigger when the editor content has changed in order to commit the file?
Thanks,
Glib