Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I made 10 editor form in my project and I want to save data to my database. How I can detect or know the active editor that I want to edit the content and get the ID and the data before I save them?

What I have tried:

I had used "getselection()", but its can't detect the selected document
Posted
Updated 5-Jan-17 18:46pm

1 solution

Hi can you share a screenshot.you can get value from ck-editor using it id please try this code to get the text entered on ck-editor text area



here i implement ck-editor so for getting the value from it just try below code


var ckdataedit=$("#cke_fileTextEditor iframe").contents().find("body").text();

change #cke_fileTextEditor to #cke_yourtextareaID

Thanks
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900