On 1/13/07, Kenneth McDonald <[EMAIL PROTECTED]> wrote:

Both TinyMCE and Google's web-based word processor (formerly named
Writely) allow what seems to be editing by directly modifying the DOM
(using innerHtml, DOM manipulation functions, etc.) rather than just
typing text into some fort of textarea. I'm writing a Turbogrears
application (though much more specialized) in which I want this sort of
ability. So, a few questions:

1) I know there is a Turbogears embedding of TinyMCE. Are there more
toolkit-type Turbogears text widgets that do this? (i.e. that provide
base widgets on which one can build, rather than a single monolithic
application.)

there is another javascript-tool call kupu, most people don't know it
but it's the default in Plone and is very nice, you could work on
integrating it.

2) How does something such as Writely figure out where to move the
cursor when the user moves it vertically, i.e. how does it find the
position on the next/previous line whose x-coordinate is closest to that
of the cursor before the cursor is moved? I can think of a couple of
ways to do this, but want to make sure I'm not missing something easier.

with a LOT of javascript goodness.

3) How is mouse-drag selection of editable text carried out? Last I
heard, the Range type objects available in the JavaScript DOM weren't
reliable enough or crossplatform enough to be used in this way.

don't know about this one

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to