Results 1 to 5 of 5
Jan 12, 2013, 19:36 #1
- Join Date
- Jul 2012
- 0 Post(s)
- 0 Thread(s)
Getting and using data from CKEditor?
Hey guys, i'm trying to use CKEditor for people to enter text in and ill use the text to put it in a database and show them what they typed. How would i do this with Jquery? I know that using the .getData() gets you the text, but i want to take that text and append it to a <p> tag so that the user can see what they typed. Also, how could it be made to update on the .keyup function?
I have the code to make it show up in the <p> tag:
var editor = CKEDITOR.replace('editor'); var editor_data = editor.getData(); $('p.new-content').text(editor_data);