El mar, 11-05-2010 a las 16:57 -0400, Marco A. Gonzalez escribió:
Hi, I'm new to Pharo, and think that along with Seaside, it is so well architected that it's compelling me to try it for professional web development.
I've created a simple web application in Seaside into which I'd like to incorporate a WYSIWYG Javascript editor for the HTML textarea tags so my users can enter stylized text. I've used TinyMCE in the past in my Java-based web apps, and it's been very simple to integrate. See http://tinymce.moxiecode.com/.
However, I can't get it to work in my Pharo/Seaside web applications. It just doesn't show up in my web browser. I hope I've specified everything below clearly, completely and succinctly. Has anyone else incorporated TinyMCE successfully? What am I missing? What am I doing wrong?
I use tinyMCE but I don't import the javascript code into the Seaside app. I put them on the web server in a given path and then in the Seaside code I put a reference to it: updateRoot: anHtmlRoot super updateRoot: anHtmlRoot. anHtmlRoot javascript resourceUrl: '/javascript/tiny_mce/tiny_mce.js' I use a resource url but you can use a full path by using url: (I think). Then in the text area component: script ^ ' tinyMCE.init({ mode : "textareas", theme : "advanced" }); ' and then something like: renderContentOn: html html label with: self session l10n text. html break. html textArea class: 'span-13'; rows: 6; on: #text of: self note And this activates the editor on all the text areas on the page. Hope this help. -- Miguel Cobá http://miguel.leugim.com.mx