You are not logged in.
Pages: 1
OK So I'm creating a page that has 5 editors being created with
xinha_editors = xinha_editors ? xinha_editors :
[
'page1ID',
'page2ID',
'page3ID',
'page4ID',
'page5ID'
];
I have some external buttons that need to manipulate those forms, but I need to know how to get a reference to the editor object in a js function (ex 'page' + n + 'ID') so i can call insertHTML. Can someone please enlighten me? Thanks!
Offline
OK So I'm creating a page that has 5 editors being created with
xinha_editors = xinha_editors ? xinha_editors : [ 'page1ID', 'page2ID', 'page3ID', 'page4ID', 'page5ID' ];
I have some external buttons that need to manipulate those forms, but I need to know how to get a reference to the editor object in a js function (ex 'page' + n + 'ID') so i can call insertHTML. Can someone please enlighten me? Thanks!
xinha_editors['page' + n + 'ID'].insertHTML() - after you have done the make_editors call, xinha_editors actually contains the editors themselves.
James Sleeman
Offline
Thanks that worked! I assume getHTML is the function to use to get the current HTML of the editor?
Also, does anything need to be done on form submittal? I have the controls on the page and enter in data, but when I submit the form nothing is passed for the textareas...
Thanks!
Offline
Pages: 1