LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 February 3 2012

MrClass
Member

Jquery and CKEditor - Problem getting values stored in Textarea

Hello everyone. I am currently working on a student progress report system and am having a tiny problem with using Jquery and CKEditor. Today I was testing getting the values entered in CKEditor textareas via Jquery, but I end up with nothing stored in my javascript variables. I tried the following:
var data = $("textarea#editor1).val();

and

var data = $(#editor1).val();

but in both cases, the 'data' variable stays empty. Textboxes had no problem, so I suspect there is a javascript conflict between Jquery and CKeditor. I tried renaming all variables, all element IDs, names...nothing solved the issue. Did anyone encounter this problem before? Thanks for any feedback.

Offline

#2 February 3 2012

MrClass
Member

Re: Jquery and CKEditor - Problem getting values stored in Textarea

After some further reading in the CKeditor documentation, i noticed they are grabbing the data by the class name rather than element ID. I didn't try that yet; will give it a shot then report back the result.

Offline

Board footer