Submit the dijit editor contents

蓝咒 提交于 2019-12-01 17:37:52

Instead of binding it to the form's onsubmit, try doing it via the widget's onChange

Give your hidden field an id:

<input type="hidden" name="editorContent" id='editorContent' />

Try this for the Editor's onChange (replacing the console.log() code you have there now.

onChange="dojo.byId('editorContent').value = this.getValue();"

Wait! As I was typing this I realized you are calling dojo.byId('editorContent') in your onsubmit but you have not assigned the id attribute to that form field. That's probably your issue and you needn't try my onChange method.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!