[Seaside] WYSIWYG text editor

John McKeon p3anoman at gmail.com
Tue Feb 23 11:00:00 UTC 2010


Hello Bernat,
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 :)

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.

Hope this helps a bit.

On Mon, Feb 22, 2010 at 11:44 PM, AxiNat <tibabenfortlapalanca at gmail.com>wrote:

> I don't wanna be annoying, but I really can't find any specific info on
> embedding fairly complex javascript apps in Seaside.
>
> 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.
>
> For what I understand (which is ~0), I'd have to:
>
>    - 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)
>    - Create accessors in my file library for I really didn't understand
>    what
>    - Subclass a WAComponent that will implement a method called script,
>    which returns the said js file
>    - Obviously, something else that I'm totally missing
>    - Embed this component into the component I wish (I have no problems
>    with this step)
>
> 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.
>
> Thank you and please excuse my dumbness ;)
>
> Bernat.
>
>
> 2010/2/22 Germán Arduino <garduino at gmail.com>
>
>> I think that the wiki of Tiny may help, in particular this page:
>>
>> http://wiki.moxiecode.com/index.php/TinyMCE:Installation
>>
>>
>> Cheers.
>> Germán.
>>
>>
>> 2010/2/22 AxiNat <tibabenfortlapalanca at gmail.com>
>>
>>> 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?
>>>
>>>  2010/2/22 Germán Arduino <garduino at gmail.com>
>>>
>>> I like to embed TinyMCE: http://tinymce.moxiecode.com/ . Is a bit big,
>>>> but pretty complete.
>>>>
>>>> Cheers.
>>>> Germán.
>>>>
>>>>
>>>> 2010/2/22 AxiNat <tibabenfortlapalanca at gmail.com>:
>>>> > Hi all,
>>>> >
>>>> > So far I've been always using the WYSIWYG ShoreComponents text editor
>>>> for my
>>>> > websites, but now I'd need something a little bit more complex, I'd
>>>> just
>>>> > need to add the possibility to create links and add images to the
>>>> text,
>>>> > nothing else.
>>>> >
>>>> > I wanted to modify the ShoreComponents editor myself, but my knowledge
>>>> in
>>>> > Javascript is as extensive as my knowledge in the harvesting of the
>>>> Korean
>>>> > pumpkin...
>>>> >
>>>> > What do you guys usually use?
>>>> >
>>>> > Thanks!
>>>> >
>>>> > Bernat Romagosa.
>>>> >
>>>> > --
>>>> >
>>>> > Ted Turner  - "Sports is like a war without the killing."
>>>> > _______________________________________________
>>>> > seaside mailing list
>>>> > seaside at lists.squeakfoundation.org
>>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>> >
>>>> >
>>>> _______________________________________________
>>>> seaside mailing list
>>>> seaside at lists.squeakfoundation.org
>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html> - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
>
> --
>
> Jonathan Swift<http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html> - "May you live every day of your life."
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


-- 
http://jmck.seasidehosting.st
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100223/d68fb2fa/attachment.htm


More information about the seaside mailing list