On Fri, May 6, 2011 at 11:20 AM, Trevor Parscal <[email protected]>wrote:

> The way the WikiEditor works right now, the textbox can be replaced with
> anything that can support a few methods, such as getSelection,
> encapsulateSelection, etc. There are some modules that depend on specific
> edit box implementations, such as the current and only alternative to the
> textarea we called "iframe" since it's a contentEditable iframe.
>
> If you take a look at jquery.wikiEditor.iframe.js, you will see what I
> mean.
> It should be pretty straightforward to drop anything in there, and be able
> to take advantage of the toolbar. There are some things, like find and
> replace that may need to be reworked or just turned off, but even things
> like the link dialog should work just fine but just supporting a few
> methods.
>
> The API could be better documented, and re-factored a bit to be even more
> generic, but the basic structure is there, and can be reused without much
> hacking.
>

Spiffy... I'll play with it for CodeEditor, see if I can make the
special-char inserts for instance work on it (which would actually be useful
for some JS!).

-- brion
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to