I've got the editor up and running. How do I pass data to other forms. I have a submit button on a data entry page and it sends over to a preview page. I've tried using the 'id=' and adding a 'name=' to the control but the data in the editor never gets passed over!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got the editor up and running. How do I pass data to other forms. I have a submit button on a data entry page and it sends over to a preview page. I've tried using the 'id=' and adding a 'name=' to the control but the data in the editor never gets passed over!
the following is my implementation:
first, add the following into aiEditor.htc:
......
<public:method name="save" internalname="c_save" />
<public:method name="getContent" internalname="c_get_content" />
</public:component>
......
......
/* the custom method invoked by the extra aiEdirot */
function c_get_content() {
return mode == 'html' ? aiEdit.innerHTML : aiEdit.innerText;
}
......
now, you can get the very content in the editor via:
aiEditor.getContent()
from your own page where the editor embeded.
good luck!