[kupu-dev] Pasting HTML into Kupu
George Lee
georgeleejr at gmail.com
Fri Dec 1 15:11:24 CET 2006
I won't be able to look at this any time soon (unless I get hit by one of my
occasional fits of frenzy one random weekend), but down the line I'd like to
help with this. Three questions --
> For instance, is it possible to trigger an HTML cleanup immediately?
>
> I don't know, but I'd love someone to contribute a patch for that.
Technically how do browsers paste -- by typing in character by character
what's in the pasted selection? If so it seems like it'd be hard to trigger
an HTML cleanup since it couldn't be called after each character ("<" "d"
"i" "v") was inserted. Alternatively, is there a way to override "paste"
within browsers with a custom paste function? Or to disable it and create
another way like right-click, paste defined through Kupu?
> Can this HTML cleanup include stripping down multiple layers of
> > nesting?
> >
> Yes, there is already some code to try to enforce the correct nesting, but
> it is disabled and probably needs further work.
Where is this code?
How does the filtering and HTML tidying of kupu, work in conjunction with
non-kupu users? If someone is entering HTML manually, through epoz, etc., if
that uses different tidying standards, then isn't this going to wreak havoc
as different users edit the same content with different methods? Or is there
a way to enforce tidying across the board -- for instance using a
KupuRichWidget which doesn't have to use kupu but will still tidy the HTML
according to the same standards whenever it is edited?
Peace,
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/kupu-dev/attachments/20061201/d777ee1f/attachment.htm
More information about the kupu-dev
mailing list