This is aproximately what I&#39;m doing also. (I don&#39;t have yet production code with<div>Tiny, but near to have)</div><div><br></div><div>Cheers.</div><div><br><div><div class="gmail_quote">2010/2/24 Richard Durr <span dir="ltr">&lt;<a href="mailto:richard.durr@googlemail.com">richard.durr@googlemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Maybe this helps:<br>
In your Component, add a method where you add all the files you need<br>
for tinymce:<br>
<br>
Component &gt;&gt; #updateRoot: anHtmlRoot<br>
        super updateRoot: anHtmlRoot.<br>
        anHtmlRoot javascript url: &#39;<a href="http://url" target="_blank">http://url</a> to tinyMCE&#39;<br>
&quot;/js/tinymce/jscripts/tiny_mce/tiny_mce.js&quot;<br>
<br>
and then add a script method like this:<br>
<br>
Component &gt;&gt; #script<br>
&#39;<br>
  tinyMCE.init({<br>
    theme : &quot;advanced&quot;,<br>
    mode: &quot;exact&quot;,<br>
    elements : &quot;elm1&quot;,<br>
    theme_advanced_toolbar_location : &quot;top&quot;,<br>
    theme_advanced_buttons1 : &quot;bold,italic,underline,strikethrough,separator,&quot;<br>
    + &quot;justifyleft,justifycenter,justifyright,justifyfull,formatselect,&quot;<br>
    + &quot;bullist,numlist,outdent,indent&quot;,<br>
    theme_advanced_buttons2 : &quot;link,unlink,anchor,image,separator,&quot;<br>
    +&quot;undo,redo,cleanup,code,separator,sub,sup,charmap&quot;,<br>
    theme_advanced_buttons3 : &quot;&quot;,<br>
    height:&quot;350px&quot;,<br>
    width:&quot;600px&quot;<br>
  });<br>
&#39;<br>
<br>
in your #renderContentOn: method add id=&quot;elm1&quot; name=&quot;elm1&quot; to your textarea.<br>
<br>
This should work..I hope ^^<br>
<div><div></div><div class="h5"><br>
On Tue, Feb 23, 2010 at 12:00 PM, John McKeon &lt;<a href="mailto:p3anoman@gmail.com">p3anoman@gmail.com</a>&gt; wrote:<br>
&gt; Hello Bernat,<br>
&gt; The only help I can offer regarding tinyMCE is to look at Seabreeze. Its  a<br>
&gt; WisualWorks based Seaside development environment. They use tinyMCE and<br>
&gt; developed the complex mechanism required to feed the js files from a<br>
&gt; WAFileLibrary. (The big problem is the subdirectory structure where tintMCE<br>
&gt; expects to find its code. A subdirectory structure that makes me ill to look<br>
&gt; at and the main reason why i shyed away from all other web dev environments<br>
&gt; like rails and php; files on top of files, miles and miles of files.....but<br>
&gt; I rant. Smalltalk took me away from all that :)<br>
&gt; As far as writing JS in ST it turns out to pretty simple just don&#39;t try to<br>
&gt; delve to deeply into the implementation of  Scriptaculous, it may only<br>
&gt; confuse you. Just render a textArea and add an onEnter: clause to render the<br>
&gt; magical incantation required - at least I think that is how tmce works. It<br>
&gt; is a long time since I looked into using it. Take a look at the onXXX:<br>
&gt; methods of WATagBrush.<br>
&gt; Hope this helps a bit.<br>
&gt;<br>
&gt; On Mon, Feb 22, 2010 at 11:44 PM, AxiNat &lt;<a href="mailto:tibabenfortlapalanca@gmail.com">tibabenfortlapalanca@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I don&#39;t wanna be annoying, but I really can&#39;t find any specific info on<br>
&gt;&gt; embedding fairly complex javascript apps in Seaside.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve read the whole chapter in the Seaside book, and some post by Ramon<br>
&gt;&gt; Leon (which points the way to go but doesn&#39;t get into the subject). I also<br>
&gt;&gt; googled a lot, but can&#39;t seem to find a nice howto going step by step.<br>
&gt;&gt;<br>
&gt;&gt; For what I understand (which is ~0), I&#39;d have to:<br>
&gt;&gt;<br>
&gt;&gt; Add the .js file to my file library (in the case of TinyMCE, there&#39;s a lot<br>
&gt;&gt; of js files, so here comes my first problem)<br>
&gt;&gt; Create accessors in my file library for I really didn&#39;t understand what<br>
&gt;&gt; Subclass a WAComponent that will implement a method called script, which<br>
&gt;&gt; returns the said js file<br>
&gt;&gt; Obviously, something else that I&#39;m totally missing<br>
&gt;&gt; Embed this component into the component I wish (I have no problems with<br>
&gt;&gt; this step)<br>
&gt;&gt;<br>
&gt;&gt; I guess I really didn&#39;t understand how the whole thing works. One big<br>
&gt;&gt; issue is that I have no idea whatsoever about how Javascript works, but I&#39;d<br>
&gt;&gt; really love to be able to keep away from coding something that&#39;s not<br>
&gt;&gt; Smalltalk in my web app.<br>
&gt;&gt;<br>
&gt;&gt; Thank you and please excuse my dumbness ;)<br>
&gt;&gt;<br>
&gt;&gt; Bernat.<br>
&gt;&gt;<br>
&gt;&gt; 2010/2/22 Germán Arduino &lt;<a href="mailto:garduino@gmail.com">garduino@gmail.com</a>&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I think that the wiki of Tiny may help, in particular this page:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Installation" target="_blank">http://wiki.moxiecode.com/index.php/TinyMCE:Installation</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Cheers.<br>
&gt;&gt;&gt; Germán.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2010/2/22 AxiNat &lt;<a href="mailto:tibabenfortlapalanca@gmail.com">tibabenfortlapalanca@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks, I knew about TinyMCE because I used to build websites in Joomla,<br>
&gt;&gt;&gt;&gt; which has a TinyMCE component, but I really have zero experience in<br>
&gt;&gt;&gt;&gt; embedding Javascript in a Seaside app, any quick howto available around?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; 2010/2/22 Germán Arduino &lt;<a href="mailto:garduino@gmail.com">garduino@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I like to embed TinyMCE: <a href="http://tinymce.moxiecode.com/" target="_blank">http://tinymce.moxiecode.com/</a> . Is a bit big,<br>
&gt;&gt;&gt;&gt;&gt; but pretty complete.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Cheers.<br>
&gt;&gt;&gt;&gt;&gt; Germán.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 2010/2/22 AxiNat &lt;<a href="mailto:tibabenfortlapalanca@gmail.com">tibabenfortlapalanca@gmail.com</a>&gt;:<br>
&gt;&gt;&gt;&gt;&gt; &gt; Hi all,<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; So far I&#39;ve been always using the WYSIWYG ShoreComponents text editor<br>
&gt;&gt;&gt;&gt;&gt; &gt; for my<br>
&gt;&gt;&gt;&gt;&gt; &gt; websites, but now I&#39;d need something a little bit more complex, I&#39;d<br>
&gt;&gt;&gt;&gt;&gt; &gt; just<br>
&gt;&gt;&gt;&gt;&gt; &gt; need to add the possibility to create links and add images to the<br>
&gt;&gt;&gt;&gt;&gt; &gt; text,<br>
&gt;&gt;&gt;&gt;&gt; &gt; nothing else.<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; I wanted to modify the ShoreComponents editor myself, but my<br>
&gt;&gt;&gt;&gt;&gt; &gt; knowledge in<br>
&gt;&gt;&gt;&gt;&gt; &gt; Javascript is as extensive as my knowledge in the harvesting of the<br>
&gt;&gt;&gt;&gt;&gt; &gt; Korean<br>
&gt;&gt;&gt;&gt;&gt; &gt; pumpkin...<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; What do you guys usually use?<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; Thanks!<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; Bernat Romagosa.<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; --<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; Ted Turner  - &quot;Sports is like a war without the killing.&quot;<br>
&gt;&gt;&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; &gt; seaside mailing list<br>
&gt;&gt;&gt;&gt;&gt; &gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt;&gt;&gt;&gt; &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; seaside mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Joan Crawford  - &quot;I, Joan Crawford, I believe in the dollar. Everything<br>
&gt;&gt;&gt;&gt; I earn, I spend.&quot;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; seaside mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; seaside mailing list<br>
&gt;&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt;<br>
&gt;&gt; Jonathan Swift  - &quot;May you live every day of your life.&quot;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seaside mailing list<br>
&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; <a href="http://jmck.seasidehosting.st" target="_blank">http://jmck.seasidehosting.st</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br><br clear="all"><br><br>
</div></div>