Hi people,
I’m trying to integrate FCKeditor on the jquery grid plugin. There is a plugin for use with jQuery and FCKeditor, where you can easy add the FCKeditor intro a textarea with this simple line:
$(‘textarea’).fck({ path: ‘/fckeditor/’,toolbar: ‘Basic’, height: 100, width:300});
What I need is to create a new element type. In the file “grid.formedit.js” I try to add this:
function createEl(eltype,options,vl) {
var elem = “”;
switch (eltype)
{
case “fckeditor” :
elem = document.createElement(“textarea”);
$(elem).attr(options);
$(elem).html(vl);
//fckeditor call using jquer.FCKEditor.js
$(function(){
$(elem).fck({ path: ‘/fckeditor/’,toolbar: ‘Basic’, height: 100, width:300});});
break;
then I edit the edittype:”fckeditor” on the colModel values.
but this don’t make any effect. Which is the correct method to create a new element type in a form?
thanks,
decker
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top