<?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: Embedding and reusing the Bespin Editor Component</title>
	<atom:link href="http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Sat, 08 Sep 2012 07:06:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alon</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-46888</link>
		<dc:creator>alon</dc:creator>
		<pubDate>Sun, 25 Jul 2010 08:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-46888</guid>
		<description>same here... got the last tried error from dojo...</description>
		<content:encoded><![CDATA[<p>same here&#8230; got the last tried error from dojo&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthijs Lambooy</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-41399</link>
		<dc:creator>Matthijs Lambooy</dc:creator>
		<pubDate>Wed, 08 Jul 2009 12:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-41399</guid>
		<description>Great post. However singleeditor.html is currently (bespin-697608054685) not working. I get the following errors in my error console:

Error: Could not load &#039;bespin.editor.component&#039;; last tried &#039;../bespin/editor/component.js&#039;
Source File: http://localhost:8080/bespin/js/dojo/dojo.js
Line: 16

Error: bespin.editor.Component is not a constructor
Source File: http://localhost:8080/bespin/tests/manual/editor/singleeditor.html
Line: 50</description>
		<content:encoded><![CDATA[<p>Great post. However singleeditor.html is currently (bespin-697608054685) not working. I get the following errors in my error console:</p>
<p>Error: Could not load &#8216;bespin.editor.component&#8217;; last tried &#8216;../bespin/editor/component.js&#8217;<br />
Source File: <a href="http://localhost:8080/bespin/js/dojo/dojo.js" rel="nofollow">http://localhost:8080/bespin/js/dojo/dojo.js</a><br />
Line: 16</p>
<p>Error: bespin.editor.Component is not a constructor<br />
Source File: <a href="http://localhost:8080/bespin/tests/manual/editor/singleeditor.html" rel="nofollow">http://localhost:8080/bespin/tests/manual/editor/singleeditor.html</a><br />
Line: 50</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-41025</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 02 Jul 2009 16:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-41025</guid>
		<description>Hi,

As René pointed out above, the singleeditor.html file is not working (along with all other files in frontend/tests/manual/editor). It seems like the instructions above to embed and reuse the editor component are obsolete. Your blog post was very helpful, however--is there any chance you could post an updated version sometime?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>As René pointed out above, the singleeditor.html file is not working (along with all other files in frontend/tests/manual/editor). It seems like the instructions above to embed and reuse the editor component are obsolete. Your blog post was very helpful, however&#8211;is there any chance you could post an updated version sometime?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: René</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40777</link>
		<dc:creator>René</dc:creator>
		<pubDate>Tue, 28 Apr 2009 09:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40777</guid>
		<description>Great post. I used this to start with the Bespin on Rails plugin. In http://hg.mozilla.org/labs/bespin/file/5040e6e40182 this example (in frontend/tests/manual/editor/singleeditor.html) seems to be broken.

No syntax highlighting. Setting a theme results in a javascript error &quot;Result of expression &#039;dojo.cookie&#039; [undefined] is not a function.&quot;

I tried to fix this on my own but without success so far. Should I enter this as a feature bug?

Cheers, 

René</description>
		<content:encoded><![CDATA[<p>Great post. I used this to start with the Bespin on Rails plugin. In <a href="http://hg.mozilla.org/labs/bespin/file/5040e6e40182" rel="nofollow">http://hg.mozilla.org/labs/bespin/file/5040e6e40182</a> this example (in frontend/tests/manual/editor/singleeditor.html) seems to be broken.</p>
<p>No syntax highlighting. Setting a theme results in a javascript error &#8220;Result of expression &#8216;dojo.cookie&#8217; [undefined] is not a function.&#8221;</p>
<p>I tried to fix this on my own but without success so far. Should I enter this as a feature bug?</p>
<p>Cheers, </p>
<p>René</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dion</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40660</link>
		<dc:creator>dion</dc:creator>
		<pubDate>Wed, 08 Apr 2009 06:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40660</guid>
		<description>Behrang,

A ha! Great catch!

I just went ahead and fixed that for you:

http://hg.mozilla.org/labs/bespin/rev/f30608635329

Thanks for finding that.... people often see that as a filename thing (when you see foo.py load this highlighter) but you are correct, when it is code it makes sense to say &quot;python&quot;.

Cheers,

Dion</description>
		<content:encoded><![CDATA[<p>Behrang,</p>
<p>A ha! Great catch!</p>
<p>I just went ahead and fixed that for you:</p>
<p><a href="http://hg.mozilla.org/labs/bespin/rev/f30608635329" rel="nofollow">http://hg.mozilla.org/labs/bespin/rev/f30608635329</a></p>
<p>Thanks for finding that&#8230;. people often see that as a filename thing (when you see foo.py load this highlighter) but you are correct, when it is code it makes sense to say &#8220;python&#8221;.</p>
<p>Cheers,</p>
<p>Dion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Behrang Dadsetan</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40659</link>
		<dc:creator>Behrang Dadsetan</dc:creator>
		<pubDate>Wed, 08 Apr 2009 03:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40659</guid>
		<description>Hi Dion,

  I am using the bleeding edge :) just did a &quot;hg revert -a&quot; and a &quot;hg pull&quot; again to be sure. I did get it to work in the end:

///////////////////////////////////
    var _editorComponent;

   // Loads and configures the objects that the editor needs
    dojo.addOnLoad(function() {
        _editorComponent = new bespin.editor.Component(&#039;editor&#039;, {
            language: &quot;py&quot;,
            loadfromdiv: true

        });

    _editorComponent.set(&quot;syntaxengine&quot;, &quot;codemirror&quot;);
});
///////////////////////////////////

I think one of the things that bit me was the &quot;registered names&quot; for the python language. Right now it is &quot;py&quot;, but I feel we should at least use [&quot;py&quot;, &quot;python&quot;] at least.

Should I help in someway? Enter this as a feature request/bug?</description>
		<content:encoded><![CDATA[<p>Hi Dion,</p>
<p>  I am using the bleeding edge :) just did a &#8220;hg revert -a&#8221; and a &#8220;hg pull&#8221; again to be sure. I did get it to work in the end:</p>
<p>///////////////////////////////////<br />
    var _editorComponent;</p>
<p>   // Loads and configures the objects that the editor needs<br />
    dojo.addOnLoad(function() {<br />
        _editorComponent = new bespin.editor.Component(&#8217;editor&#8217;, {<br />
            language: &#8220;py&#8221;,<br />
            loadfromdiv: true</p>
<p>        });</p>
<p>    _editorComponent.set(&#8221;syntaxengine&#8221;, &#8220;codemirror&#8221;);<br />
});<br />
///////////////////////////////////</p>
<p>I think one of the things that bit me was the &#8220;registered names&#8221; for the python language. Right now it is &#8220;py&#8221;, but I feel we should at least use ["py", "python"] at least.</p>
<p>Should I help in someway? Enter this as a feature request/bug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dion</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40656</link>
		<dc:creator>dion</dc:creator>
		<pubDate>Tue, 07 Apr 2009 20:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40656</guid>
		<description>Behrang,

That should work. Are you using the latest and greatest?

Cheers,

Dion</description>
		<content:encoded><![CDATA[<p>Behrang,</p>
<p>That should work. Are you using the latest and greatest?</p>
<p>Cheers,</p>
<p>Dion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Behrang Dadsetan</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40655</link>
		<dc:creator>Behrang Dadsetan</dc:creator>
		<pubDate>Tue, 07 Apr 2009 19:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40655</guid>
		<description>Excellent really amazing work.

I do have difficulties to get syntax highlighting for python when using the component alone. I tried to .set(&quot;syntaxengine&quot;, &quot;codemirror&quot;) because I imagined that could be the problem but it does not seem to help.

Any suggestions?

Thanks a lot for the great work you share here.</description>
		<content:encoded><![CDATA[<p>Excellent really amazing work.</p>
<p>I do have difficulties to get syntax highlighting for python when using the component alone. I tried to .set(&#8221;syntaxengine&#8221;, &#8220;codemirror&#8221;) because I imagined that could be the problem but it does not seem to help.</p>
<p>Any suggestions?</p>
<p>Thanks a lot for the great work you share here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael Roos</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40652</link>
		<dc:creator>Mikael Roos</dc:creator>
		<pubDate>Mon, 06 Apr 2009 17:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40652</guid>
		<description>Very cool, it was amazingly straightforward and easy to integrate to our existing platform. Took me about 15 minutes.

Couldn&#039;t get the editor:document:changed event to work though. Is it documented somewhere? A strict google search returns only this article. When exactly should the event fire? My editor instance does have a function by the name and it seems to connect correctly with dojo.connect, but the event never seems to fire.</description>
		<content:encoded><![CDATA[<p>Very cool, it was amazingly straightforward and easy to integrate to our existing platform. Took me about 15 minutes.</p>
<p>Couldn&#8217;t get the editor:document:changed event to work though. Is it documented somewhere? A strict google search returns only this article. When exactly should the event fire? My editor instance does have a function by the name and it seems to connect correctly with dojo.connect, but the event never seems to fire.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://almaer.com/blog/embedding-and-reusing-the-bespin-editor-component/comment-page-1#comment-40636</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Tue, 31 Mar 2009 17:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2315#comment-40636</guid>
		<description>Feature request: The ability to have tabs in there.

In my application, we have several pieces of content that users can edit: a html template, some javascript and css. 

It would be freggin&#039; awesome to have the option of opening a new window with just the editor control and a tab for each &quot;file&quot; (with no close option). Then the user can use that, and ctrl-s to save changes just like if they had the files on their local machine and was using textedit.

Currently we display the &quot;files&quot; in several textareas, and use a normal form submit to save changes. This is quite a cumbersome, and dosen&#039;t have the nice do-a-change-save-tab-to-other-document-reload flow that we know and love from web development.

Best,
Oliver</description>
		<content:encoded><![CDATA[<p>Feature request: The ability to have tabs in there.</p>
<p>In my application, we have several pieces of content that users can edit: a html template, some javascript and css. </p>
<p>It would be freggin&#8217; awesome to have the option of opening a new window with just the editor control and a tab for each &#8220;file&#8221; (with no close option). Then the user can use that, and ctrl-s to save changes just like if they had the files on their local machine and was using textedit.</p>
<p>Currently we display the &#8220;files&#8221; in several textareas, and use a normal form submit to save changes. This is quite a cumbersome, and dosen&#8217;t have the nice do-a-change-save-tab-to-other-document-reload flow that we know and love from web development.</p>
<p>Best,<br />
Oliver</p>
]]></content:encoded>
	</item>
</channel>
</rss>
