| Page 1 of 1 | [ 9 posts ] |
|
Is this the correct way on getting the data from the RTE
editor.saveHTML(); editor.get('element').value; |
|
var html = editor.saveHTML();
//html will contain the html that was put back into the text area. var html2 = editor.get('element').value; //html2 will contain the content of the textarea Does that help? |
|
When I do var html = editor.saveHTML(); alert(html);
it is displaying nothing; |
|
Where are you calling that from? Post a link with a repro case & I will look at it..
|
|
It will be difficult to give you a link to look at because the application is an internal one.
But i tried to put the relevant information in the follow gist git://gist.github.com/163453.git |
|
You have a spelling error:
var html = editor.get('elememt').value; Should be: var html = editor.get('element').value; Does that help? |
|
I fixed the spelling mistake and still nothing
|
|
I'm going to need a stripped down test page, I can't debug with what I see here..
The code looks to be fine, but it's hard to tell when I can't run the page and see it break.. |
|
I figured out what my problem was.. I had 2 RTEs' on the page
Thanks |
| Page 1 of 1 | [ 9 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group