与其将其绑定到表单
onsubmit,不如尝试通过小部件的
onChange
给您的隐藏字段一个ID:
<input type="hidden" name="editorContent" id='editorContent' />
在编辑器中尝试此操作
onChange(替换
console.log()现在的代码)。
onChange="dojo.byId('editorContent').value = this.getValue();"等待!
当我键入此内容时,我意识到您正在呼叫
dojo.byId('editorContent')您,onsubmit但尚未将
id属性分配给该表单字段。那可能是您的问题,您无需尝试我的
onChange方法。



