One of the fields in the editable table row must be able to be edited in the tinymce editor. How to make friends jqgrid and tinymce - I can not figure it out. Can anyone come across, aah ..?
Update: Here is my answer to my question. (stuck, as you said, in the modal window) Sorry for this formatting, I can not figure out how to arrange everything beautifully :(: jQuery ('# table'). jqGrid ({
// jqgrid settings
}). navGrid ('# tablePager',
{refresh:true,add:true,edit:true,del:true,search:true}, {
// edit parameters
width: "100%",
height: 550,
reloadAfterSubmit: true
after ShowForm: function () {
// before displaying the edit window, substitute the desired content field with an editor
tinyMCE.init ({
mode: "exact", theme : "advanced", language: "ru", elements: "content", // еще какие-то настройки });
},
onclickSubmit: function () {
var contenttext = tinyMCE.get ('content'). getContent ();
return {
content: contenttext };
},
onClose: function () {
tinyMCE.get ('content'). remove ();
return true;
},
},
{
// add parameters
width: "100%",
height: 550,
reloadAfterSubmit: true
before ShowForm: function () {
tinyMCE.init({ mode: "exact", theme : "advanced", language: "ru", elements: "content", height: 400, // еще какие-то настройки });
},
onclickSubmit: function () {
var contenttext = tinyMCE.get ('content'). getContent ();
return {
content: contenttext };
},
onClose: function () {
tinyMCE.get ('content'). remove ();
},
}, { //delete parameters } ); );