<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: FCKeditor</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p637</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p637</guid>
        	        	<description><![CDATA[<p>Maybe there is API in fck that can change dynamically the content ?!?</p>
]]></description>
        	        	<pubDate>Wed, 04 Jun 2008 12:04:10 +0300</pubDate>
        </item>
        <item>
        	<title>decker82 on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p621</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p621</guid>
        	        	<description><![CDATA[<p>Thanks, this works nice.<br />
But there is one important problem with fckeditor. The way that we retrieve the data is different than on the others fields. I have to use this code:</p>
<p>var oEditor = FCKeditorAPI.GetInstance('fck_content');<br />
postdata[this.name] = oEditor.GetXHTML(true) &#124;&#124; "&#160;";</p>
<p>("fck_content" is the id of the textarea with fck)<br />
With this I can submit the fckeditor values well, but when I have to edit a row the values aren't loaded on fckeditor. Where are loaded the values of the edit form or how can I reload them?</p>
<p>thanks<br />
decker</p>
]]></description>
        	        	<pubDate>Tue, 03 Jun 2008 02:45:06 +0300</pubDate>
        </item>
        <item>
        	<title>tony on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p618</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p618</guid>
        	        	<description><![CDATA[<p>Hi,<br />
It seems that on hidden fields fck does not work.<br />
You can do this without to change the formedit code. Simply use a one trick with afterShowForm event.<br />
Let suppose you defined textarea field in colModel.<br />
In edit options add this  for these fielfds editoptions:{class:'fck'...}<br />
Since afterShowForm is called every time you click on edit or create button you should call it only once. For this purpose define global variable something like </p>
<p>var aftershowcnt = false<br />
then </p>
<p>afterShowForm : function(form_id) {<br />
if (!aftershowcnt ) {<br />
 $('.fck',form_id).fck( options )<br />
 aftershowcnt = true;<br />
}</p>
<p>}</p>
<p>Regards<br />
Tony</p>
]]></description>
        	        	<pubDate>Mon, 02 Jun 2008 10:07:45 +0300</pubDate>
        </item>
        <item>
        	<title>decker82 on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p617</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p617</guid>
        	        	<description><![CDATA[<p>I have resolved the previous problem when we apply fckeditor to all textareas. In function <b>createEl</b> I have created fckeditor element and the I have to add a new class, fck:</p>
<p>case "fckeditor" :<br />
elem = document.createElement("textarea");<br />
$(elem).attr(options);<br />
$(elem).html(vl);<br />
$(elem).addClass('fck');<br />
break;</p>
<p>And on line 232 of grid.formedit:<br />
$("<b>textarea.fck</b>").fck({path: '/fckeditor/',toolbar: 'Custom',  height: 400, width:600});<br />
$("#sData", "#"+frmtb).click(function(e){</p>
]]></description>
        	        	<pubDate>Mon, 02 Jun 2008 09:14:53 +0300</pubDate>
        </item>
        <item>
        	<title>decker82 on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p616</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p616</guid>
        	        	<description><![CDATA[<p>It works!<br />
On the file grid.form-edit line 230 aprox. I added this line to load fckeditor and it works nice 🙂</p>
<p>if(rowid=="_empty") $("#pData,#nData","#"+frmtb).hide(); else $("#pData,#nData","#"+frmtb).show();<br />
<b>$('textarea').fck({path: '/fckeditor/',toolbar: 'Custom',  height: 400, width:600});</b></p>
<p>The only contra is that applies to all textarea fields. I will try to apply the id fckeditor to the element type...</p>
<p>thanks</p>
]]></description>
        	        	<pubDate>Mon, 02 Jun 2008 07:03:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p610</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p610</guid>
        	        	<description><![CDATA[<p>You should add fckeditor in filData function too.<br />
something like:<br />
....<br />
case "text":<br />
case "textarea":<br />
case "fckeditor":<br />
  $("#"+nm,"#"+frmtb).val(tmp);<br />
  break;<br />
....</p>
]]></description>
        	        	<pubDate>Fri, 30 May 2008 11:28:29 +0300</pubDate>
        </item>
        <item>
        	<title>tony on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p609</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p609</guid>
        	        	<description><![CDATA[<p>This is the right way to do that, bu I think that the right code should be:</p>
<p>function createEl(eltype,options,vl) {<br />
var elem = â€â€;<br />
switch (eltype)<br />
{<br />
case â€fckeditorâ€ :<br />
elem = document.createElement(â€textareaâ€);<br />
$(elem).attr(options);<br />
$(elem).html(vl);<br />
//fckeditor call using jquer.FCKEditor.js<br />
$(elem).fck({ path: "/fckeditor/",toolbar: â€™Basicâ€™, height: 100, width:300});<br />
break;</p>
<p>If you have FireBug see what is happen</p>
<p>Regards</p>
<p>P.S. If I have time I will test this</p>
]]></description>
        	        	<pubDate>Fri, 30 May 2008 11:26:42 +0300</pubDate>
        </item>
        <item>
        	<title>decker82 on FCKeditor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p602</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/FCKeditor#p602</guid>
        	        	<description><![CDATA[<p>Hi people,<br />
I'm trying to integrate FCKeditor on the jquery grid plugin. There is a <a href='http://www.fyneworks.com/jquery/FCKEditor/' rel="nofollow" target="_blank">plugin</a> for use with jQuery and FCKeditor, where you can easy add the FCKeditor intro a textarea with this simple line:</p>
<p>$('textarea').fck({ path: '/fckeditor/',toolbar: 'Basic', height: 100, width:300});</p>
<p>What I need is to create a new element type. In the file "grid.formedit.js" I try to add this:</p>
<p><b>function</b> createEl(eltype,options,vl) {<br />
var elem = "";<br />
switch (eltype)<br />
{<br />
case "fckeditor" :<br />
  elem = document.createElement("textarea");<br />
  $(elem).attr(options);<br />
  $(elem).html(vl);<br />
  //fckeditor call using jquer.FCKEditor.js<br />
  $(function(){<br />
	$(elem).fck({ path: '/fckeditor/',toolbar: 'Basic', height: 100, width:300});});<br />
   break;</p>
<p>then I edit the <b>edittype</b>:"fckeditor" on the colModel values.</p>
<p>but this don't make any effect. Which is the correct method to create a new element type in a form?</p>
<p>thanks,<br />
decker</p>
]]></description>
        	        	<pubDate>Fri, 30 May 2008 09:41:04 +0300</pubDate>
        </item>
</channel>
</rss>