Re: [Wikiwyg-dev] Wysiwyg at the end of the web page loading



On Wed, 15 Feb 2006, "Jürgen R. Plasser" wrote:

Dave Howorth wrote:
jerome wrote:
Hello,

Is it possible to open Wyikiwyg in "wysiwyg" mode at the end of the web
page loading?

I don't believe that wikiwyg will do this out of the box, but I imagine it would be easy to change it to do this itself, or just to add some Javascript to the page to do it.

I have tried this with my wiki prototype and ran into some serious problems.

When starting wysiwyg mode right after creating the wikiwyg "area" it
did not work. When I delayed setting the mode for some fractions of a
second it worked fine (in firefox). I did not find the time to dig
deeper, but I suppose it has something to do with the iframe, that's
created by wikiwyg.

Maybe you tried to access a DOM element before it was available, which is why the delay fixed the problem. You might find the JSAN library DOM.Ready useful (disclaimer, I wrote it): http://www.openjsan.org/doc/a/au/autarch/DOM/Ready/0.13/index.html

It lets you set up a callback that will not be run til a given element is ready.


Dave Rolsky
Programmer @ Socialtext, Inc.
www.socialtext.com


This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.