[Seaside] Using the EditArea Javascript library

James Robertson jrobertson at cincom.com
Sun Jun 8 14:18:06 UTC 2008


	What you sketch out below is the correct way to add in arbitrary  
Javascript in Seaside?  I'm giving a beginners tutorial at Smalltalk  
Solutions, so I want to be accurate.


James Robertson
Cincom Smalltalk Product Evangelist
Talk Small and Carry a Big Class Library

On Jun 8, 2008, at 6:15 AM, Philippe Marschall wrote:

> 2008/6/7, Carl Gundel <carlg at libertybasic.com>:
>> I'm trying to use the EditArea Javascript code editor (check it out  
>> at
>> http://www.cdolivet.net/editarea) but it's not clear at all
>> to me how to write the Seaside code to make it work.
>> Here is the example used in the documentation to show how the  
>> control is
>> placed into a page.  Any recommendations?
> Pretty standard stuff:
> updateRoot: anHtmlRoot
>    super updateRoot: anHtmlRoot.
>    anHtmlRoot javascript url: '/editarea/edit_area/edit_area_full.js'.
>    anHtmlRoot javascript add: 'editAreaLoader.init({id :
> "textarea_1",syntax: "css" ,start_highlight: true});'
> renderContentOn: html
>    html form: [
>        html textArea .... ]
> I'm not sure whether the second JavaScript really works. Do not even
> think about running this with anything but Firebug.
> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list