<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Latest improvements in the Editor2</title>
	<atom:link href="http://www.liucougar.net/blog/archives/57/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liucougar.net/blog/archives/57</link>
	<description></description>
	<lastBuildDate>Sun, 07 Mar 2010 12:19:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ralf</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-9537</link>
		<dc:creator>Ralf</dc:creator>
		<pubDate>Tue, 05 Dec 2006 14:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-9537</guid>
		<description>ha, it doesn´t like the &lt;nodes... part ;-)</description>
		<content:encoded><![CDATA[<p>ha, it doesn´t like the &lt;nodes&#8230; part <img src='http://www.liucougar.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-9536</link>
		<dc:creator>Ralf</dc:creator>
		<pubDate>Tue, 05 Dec 2006 14:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-9536</guid>
		<description>...continued...
		for(var x=0; x</description>
		<content:encoded><![CDATA[<p>&#8230;continued&#8230;<br />
		for(var x=0; x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-9535</link>
		<dc:creator>Ralf</dc:creator>
		<pubDate>Tue, 05 Dec 2006 14:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-9535</guid>
		<description>Hello Cougar,

I extended your Editor2-widget to support adding of options to a custom drop-down field and hiding/showing this select-box.
I used inheritance to define my own Editor2Vis. 
It works fine in FF2 but not in IE6.
Do you have any Idea what the problem is?
Thanks a lot!
Ralf

****************

dojo.provide(&quot;dojo.widget.Editor2Vis&quot;);

dojo.require(&quot;dojo.lfx.toggle&quot;);
dojo.require(&quot;dojo.widget.*&quot;);
dojo.require(&quot;dojo.widget.Editor2&quot;); 



dojo.widget.defineWidget(
	&quot;dojo.widget.Editor2Vis&quot;,
	dojo.widget.Editor2,
{
	// Object: dojo.uri.Uri object to specify the template file for the toolbar
	toolbarTemplatePath: dojo.uri.dojoUri(&quot;src/widget/templates/EditorToolbarVis.html&quot;),	
	findToolbarItem: function(/*String*/itemName)
  {
		//debugger;
		var nodes = dojo.html.getElementsByClass(&quot;dojoEditorToolbarItem&quot;, this.domNode/*, this.itemNodeType*/);

		this.items = {};
		for(var x=0; x</description>
		<content:encoded><![CDATA[<p>Hello Cougar,</p>
<p>I extended your Editor2-widget to support adding of options to a custom drop-down field and hiding/showing this select-box.<br />
I used inheritance to define my own Editor2Vis.<br />
It works fine in FF2 but not in IE6.<br />
Do you have any Idea what the problem is?<br />
Thanks a lot!<br />
Ralf</p>
<p>****************</p>
<p>dojo.provide(&#8220;dojo.widget.Editor2Vis&#8221;);</p>
<p>dojo.require(&#8220;dojo.lfx.toggle&#8221;);<br />
dojo.require(&#8220;dojo.widget.*&#8221;);<br />
dojo.require(&#8220;dojo.widget.Editor2&#8243;); </p>
<p>dojo.widget.defineWidget(<br />
	&#8220;dojo.widget.Editor2Vis&#8221;,<br />
	dojo.widget.Editor2,<br />
{<br />
	// Object: dojo.uri.Uri object to specify the template file for the toolbar<br />
	toolbarTemplatePath: dojo.uri.dojoUri(&#8220;src/widget/templates/EditorToolbarVis.html&#8221;),<br />
	findToolbarItem: function(/*String*/itemName)<br />
  {<br />
		//debugger;<br />
		var nodes = dojo.html.getElementsByClass(&#8220;dojoEditorToolbarItem&#8221;, this.domNode/*, this.itemNodeType*/);</p>
<p>		this.items = {};<br />
		for(var x=0; x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lulu</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-9190</link>
		<dc:creator>lulu</dc:creator>
		<pubDate>Wed, 15 Nov 2006 14:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-9190</guid>
		<description>haven&#039;t tried that.. added my own custom button. Everything works fine now... thanks again!</description>
		<content:encoded><![CDATA[<p>haven&#8217;t tried that.. added my own custom button. Everything works fine now&#8230; thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-8534</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Mon, 06 Nov 2006 14:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-8534</guid>
		<description>try to enable SimpleSignalCommands plugin and look at the comment in it</description>
		<content:encoded><![CDATA[<p>try to enable SimpleSignalCommands plugin and look at the comment in it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lulu</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-8509</link>
		<dc:creator>lulu</dc:creator>
		<pubDate>Mon, 06 Nov 2006 10:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-8509</guid>
		<description>Thanks for the feedback!

Apparently the savebutton of the template isn&#039;t working (it&#039;s commented in the distribution):

DEBUG:  dojo.widget.Editor2ToolbarItemManager.getToolbarItem: Unknown toolbar item: save

Are there workarounds/fixes?</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback!</p>
<p>Apparently the savebutton of the template isn&#8217;t working (it&#8217;s commented in the distribution):</p>
<p>DEBUG:  dojo.widget.Editor2ToolbarItemManager.getToolbarItem: Unknown toolbar item: save</p>
<p>Are there workarounds/fixes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-8193</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Sat, 04 Nov 2006 00:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-8193</guid>
		<description>not the case if you use latest trunk (which will soon become dojo 0.4.1): I fixed that in dojo trunk as well ;)

In fact, in the nightly demos, you can noticed that the toolbars in the page are not the same.</description>
		<content:encoded><![CDATA[<p>not the case if you use latest trunk (which will soon become dojo 0.4.1): I fixed that in dojo trunk as well <img src='http://www.liucougar.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In fact, in the nightly demos, you can noticed that the toolbars in the page are not the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lulu</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-8155</link>
		<dc:creator>lulu</dc:creator>
		<pubDate>Fri, 03 Nov 2006 15:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-8155</guid>
		<description>... i guess that means that i can&#039;t set a custom template for each editor instance...</description>
		<content:encoded><![CDATA[<p>&#8230; i guess that means that i can&#8217;t set a custom template for each editor instance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-8152</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Fri, 03 Nov 2006 14:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-8152</guid>
		<description>That was with old Editor2 in dojo 0.3.x

With the new one in 0.4.x, you have to customize the default template file for the toolbar to specify which buttons/items you want</description>
		<content:encoded><![CDATA[<p>That was with old Editor2 in dojo 0.3.x</p>
<p>With the new one in 0.4.x, you have to customize the default template file for the toolbar to specify which buttons/items you want</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lulu</title>
		<link>http://www.liucougar.net/blog/archives/57/comment-page-1#comment-8147</link>
		<dc:creator>lulu</dc:creator>
		<pubDate>Fri, 03 Nov 2006 14:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://liucougar.scim-im.org/blog/archives/57#comment-8147</guid>
		<description>What&#039;s with a custom itemset for each Editor2 instance. The following code isn&#039;t working:

var editorArgs = {
				inheritWidth: true,
    			items: [&quot;bold&quot;, &quot;italic&quot;, &quot;underline&quot;, &quot;strikethrough&quot;]
			};
			var editor = dojo.widget.createWidget(&quot;Editor2&quot;, editorArgs, e.currentTarget);</description>
		<content:encoded><![CDATA[<p>What&#8217;s with a custom itemset for each Editor2 instance. The following code isn&#8217;t working:</p>
<p>var editorArgs = {<br />
				inheritWidth: true,<br />
    			items: ["bold", "italic", "underline", "strikethrough"]<br />
			};<br />
			var editor = dojo.widget.createWidget(&#8220;Editor2&#8243;, editorArgs, e.currentTarget);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
