As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
// Add an onsubmit to the form var editForm = Alfresco.util.ComponentManager.find({id: 'the-id-I-already-had'})[0]; editForm.formsRuntime.doBeforeFormSubmit = { fn: function(form, obj) { // Get the string document from the editor var xml = ditaStorm.getXml(); // Get the string document from the editor var textarea = document.getElementById('my-textarea-id'); textarea.value = xml; }, scope: this };