ajax - How can i get content of CKEditor using JQuery? -


I am using CKEditor. I am saving prices of the form using Ajax's page methods.

But the value of the CKAditor can not be saved in the table.

I do not post the page.

What can I do for this?

Firstly you should include the ckeditor and jquery connector script

  & lt; Textarea name = "content" class = "editor" id = "ms_editor" & gt; & Lt; / Textarea & gt;  

Attach the ckditor to the text field, in my project I use something like this:

  $ ('textarea.editor'). Ckeditor (function () {}, {toolbar: [['cut', 'copy', 'paste', 'pastetext', 'pastefender', '-', 'print', 'spell checker', 'scat'] ['Undo', 'Red', '' Bold, 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'], ['Number List', 'Bulletlist', ' - ',' 'Outlined', '' Indent '', 'Blockquote'], ['Justify Lift', 'Justify Center', 'Justified', 'Justificable Block'], ['Link', 'Unlink', 'Anchor' Image ',' smiley '], [' table ',' horizontal '] H Rules' Speshlcr '], [' styles', 'BG color']], toolbar Knkalps: false, height: '300px' Skat_slang 'Pt_PT' Ui Caller: "# Ibiibiibi '}); Submit using content at  

:

  var content = $ ('textarea.editor') .val ();  

That's it! :)


Comments