On 13 Sep 2006 at 10:48, Candide Kemmler wrote:
> I have a problem: I would like to develop a sophisticated blogging
> engine on top of laszlo. The thing is: there's no "real" text editor
> for this platform. Even the "rich text" editor doesn't support images
> (or smileys). Besides, editing text in flash has always been a chore
> and I think it will always be.
>
> That's the reason why I recently got into the process of building
> legals. Now, making a "real" text editor from scratch is a complex
> endeavour in itself, and besides, that task has already been
> accomplished several times. My personal favourite is TinyMCE.
>
> I think it could well be impossible to neatly integrate OpenLaszlo
> legals with TinyMCE (correct me if I'm wrong), mostly because TMCE
> uses an iframe to edit a document's contents. What I'd like to do is
> let the browser handle things so that everything is transparent to the
> end-user. Of course that implies that developers have a means to
> communicate between their laszlo apps and their DHTML _javascript_.
>
> I would really like to experiment a bit on this subject. I think
> OL/DHTML _javascript_ communication is not ready yet. But it shouldn't
> be too difficult to implement, or am I mistaken here?
>
> Anyway, I'd really appreciate a hint or two about the source code, so
> I could figure out where to start...
________________________________________________________
Perhaps laszlo-user might be the better list for this thread.
Currently I'm experimenting with integrating HTML objects, including
TinyMCE, into existing OpenLaszlo 3.3 (not future legals) so I can add
my experience .. see some threads on HTML overlay in laszlosystems
forum.
(1) First, consider .. do you really need to integrate OpenLaszlo
content with TinyMCE (or other editor?).
By integration I mean seamlessly into or overlaying the OpenLaszlo
canvas .. "on top" as you say?
It is much, much easier to position by CSS the richtexteditor in one div
container, and to keep OpenLaszlo content in another div container in
the parent HTML wrapper page .. divs alongside, not on top. In this
sense, the browser "viewport" is the "super-canvas".
(2) Do you need to pass back the edited HTML code from TinyMCE to
OpenLaszlo? Must it be rendered in OpenLaszlo?
(3) If you must launch an overlaying TinyMCE panel, from
OpenLaszlo, then explore Yahoo UI as a _javascript_ framework which
can be called from OpenLaszlo app (another integration experiment in
progress!). The TinyMCE div can be dynamically written, launching
_javascript_ from OpenLaszlo.
http://developer.yahoo.com/yui/
Yahoo UI should integrate nicely with legals DHTML.
(4) TinyMCE is interesting since it is available as a module in drupal (a
blogging engine). But another editor to investigate is ..
http://www.wymeditor.org/en/
WYMeditor is XHTML compliant and may be more suited for
integration with OpenLaszlo XML(returning XML).
(5) For OpenLaszlo <---> _javascript_ communications, consider using
Flash 8 externalInterface.
(6) For writing OpenLaszlo content into div container, consider using
SWFObject.js.
DL
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
