Hello Bernat,<div>The only help I can offer regarding tinyMCE is to look at Seabreeze. Its a WisualWorks based Seaside development environment. They use tinyMCE and developed the complex mechanism required to feed the js files from a WAFileLibrary. (The big problem is the subdirectory structure where tintMCE expects to find its code. A subdirectory structure that makes me ill to look at and the main reason why i shyed away from all other web dev environments like rails and php; files on top of files, miles and miles of files.....but I rant. Smalltalk took me away from all that :)</div>
<div><br></div><div>As far as writing JS in ST it turns out to pretty simple just don't try to delve to deeply into the implementation of Scriptaculous, it may only confuse you. Just render a textArea and add an onEnter: clause to render the magical incantation required - at least I think that is how tmce works. It is a long time since I looked into using it. Take a look at the onXXX: methods of WATagBrush.</div>
<div><br></div><div>Hope this helps a bit.<br><br><div class="gmail_quote">On Mon, Feb 22, 2010 at 11:44 PM, AxiNat <span dir="ltr"><<a href="mailto:tibabenfortlapalanca@gmail.com">tibabenfortlapalanca@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I don't wanna be annoying, but I really can't find any specific info on embedding fairly complex javascript apps in Seaside.<br>
<br>I've read the whole chapter in the Seaside book, and some post by Ramon Leon (which points the way to go but doesn't get into the subject). I also googled a lot, but can't seem to find a nice howto going step by step.<br>
<br>For what I understand (which is ~0), I'd have to:<br><ul><li>Add the .js file to my file library (in the case of TinyMCE, there's a lot of js files, so here comes my first problem)</li><li>Create accessors in my file library for I really didn't understand what</li>
<li>Subclass a WAComponent that will implement a method called script, which returns the said js file</li><li>Obviously, something else that I'm totally missing</li><li>Embed this component into the component I wish (I have no problems with this step)<br>
</li></ul>I guess I really didn't understand how the whole thing works. One big issue is that I have no idea whatsoever about how Javascript works, but I'd really love to be able to keep away from coding something that's not Smalltalk in my web app.<br>
<br>Thank you and please excuse my dumbness ;)<br><br>Bernat.<div><div></div><div class="h5"><br><br><div class="gmail_quote">2010/2/22 Germán Arduino <span dir="ltr"><<a href="mailto:garduino@gmail.com" target="_blank">garduino@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
I think that the wiki of Tiny may help, in particular this page:<br><br><a href="http://wiki.moxiecode.com/index.php/TinyMCE:Installation" target="_blank">http://wiki.moxiecode.com/index.php/TinyMCE:Installation</a><div>
<div>
</div><div><br><br>Cheers.<br>Germán.<br>
<br><br><div class="gmail_quote">2010/2/22 AxiNat <span dir="ltr"><<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Thanks, I knew about TinyMCE because I used to build websites in Joomla, which has a TinyMCE component, but I really have zero experience in embedding Javascript in a Seaside app, any quick howto available around?<br><br>
<div class="gmail_quote">
2010/2/22 Germán Arduino <span dir="ltr"><<a href="mailto:garduino@gmail.com" target="_blank">garduino@gmail.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
I like to embed TinyMCE: <a href="http://tinymce.moxiecode.com/" target="_blank">http://tinymce.moxiecode.com/</a> . Is a bit big,<br>
but pretty complete.<br>
<br>
Cheers.<br>
Germán.<br>
<br>
<br>
2010/2/22 AxiNat <<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a>>:<br>
<div><div></div><div>> Hi all,<br>
><br>
> So far I've been always using the WYSIWYG ShoreComponents text editor for my<br>
> websites, but now I'd need something a little bit more complex, I'd just<br>
> need to add the possibility to create links and add images to the text,<br>
> nothing else.<br>
><br>
> I wanted to modify the ShoreComponents editor myself, but my knowledge in<br>
> Javascript is as extensive as my knowledge in the harvesting of the Korean<br>
> pumpkin...<br>
><br>
> What do you guys usually use?<br>
><br>
> Thanks!<br>
><br>
> Bernat Romagosa.<br>
><br>
> --<br>
><br>
> Ted Turner - "Sports is like a war without the killing."<br>
</div></div>> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
><br>
><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
</blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br><br><a href="http://www.brainyquote.com/quotes/authors/j/joan_crawford.html" target="_blank">Joan Crawford</a> - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
<br></blockquote></div><br><br>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br><br><a href="http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html" target="_blank">Jonathan Swift</a> - "May you live every day of your life."
</font><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>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st">http://jmck.seasidehosting.st</a><br>
</div>