Есть такой плагин к библиотеке jquery - jqgrid (__http://www.trirand.net/) Очень интересует возможность добавления редактора текста таких как CKEditor, TinyMCE или любого другого. Как добавить к полю дополнительные функции редактор, обработчик какой либо или еще что то. Всю документацию перерыл и примеры все посмотрел ничего подобного не нашел!
Дам пример кода, попробуй разобраться: PHP: <?= $this->partial("jsfunc_getfckvalue.phtml"); ?> <script type="text/javascript"> $(document).ready( function() { <? $this->afterShowForm = $this->partial("jsfunc_edit_datepickerinit.phtml",array("sel" => "#PostDate")); $this->beforeShowForm = $this->partial("jsfunc_fck2textarea_with_id.phtml", array("id" => "Content")); ?> addopt=<?= $this->jqGridAddOptions(array("width"=>800, "height"=>590, "modal"=>"true", "top"=>"50", "left" => "200", "afterShowForm"=>$this->afterShowForm,"beforeShowForm"=>$this->beforeShowForm)); ?>}; jQuery("#news").jqGrid({ url:"<?=$this->url(array('controller' => 'ajaxnews', 'action' => 'getnews', 'module' => 'admin', 'lang' => $this->currentLang()), 'default_multilingual', true)?>", editurl: "<?=$this->url(array('controller' => 'ajaxnews', 'action' => 'editnews', 'module' => 'admin', 'lang' => $this->currentLang()), 'default_multilingual', true)?>", colNames:['ID','Title', 'Url Title','Announce','Content', 'Keywords', 'Description', 'Post Date', 'Npp', 'Action'], colModel:[ {name:'ID',index:'NewsID', width:40, editable:false}, {name:'Title',index:'Title', width:300, search: false, editable: true, editoptions:{size:"110",maxlength:"100"}, editrules: {edithidden: true, required: true}}, {name:'UrlTitle',index:'UrlTitle', width:150, search: false, editable: true, editoptions:{size:"110",maxlength:"100"}, editrules: {edithidden: true, required: true}}, {name:'Announce',index:'Announce', width:200, search: false, editable: true, hidden: true, edittype: "textarea", editoptions:{rows: "3", cols: "70"}, editrules: {edithidden: true, required: true}}, {name:'Content', index:'Content', width:400, search: false, editable: true, hidden: true, edittype: "fck", editoptions:{rows: "20", cols: "70"}, editrules: {edithidden: true, required: true}}, {name:'Keywords',index:'Keywords', width:200, search: false, editable: true, edittype: "textarea", hidden: true, editoptions:{rows: "3", cols: "70"}, editrules: {edithidden: true, required: false}}, {name:'Description',index:'Description', width:200, search: false, editable: true, edittype: "textarea", hidden: true, editoptions:{rows: "3", cols: "70"}, editrules: {edithidden: true, required: false}}, {name:'PostDate', index:'PostDate', width:140, sorttype: 'date', datefmt: 'd.m.Y H:i', editable:true, editoptions:{size:"14",maxlength:"10"} , editrules: {required: true}}, {name:'Npp', index:'Npp', width:60, editable:true, editrules: {number: true, required: true}}, {name:'act',index:'act', width:85, sortable:false, search: false, align: 'center'} ], caption: 'News Records', sortname: 'Npp', sortorder: 'asc', <?= $this->jqGridRepeatOptions(); ?>, loadComplete: function(){ <?= $this->jqGridSetFTR("#news",array("buttons" => "[EDIT][DELETE]")); ?> } })<?= $this->jqGridAddPager("#pager").$this->jqGridAddRefresh("#news","#pager").$this->jqGridAddAdd("#news","#pager",array("optionsArray" => "addopt")); ?> } ); </script> <table id="news" class="scroll"></table> <div id="pager" class="scroll" style="text-align:center;"></div>