[kupu-dev] kupucontentfilters bug with empty text
Paul Rivera
paulrivera22 at gmail.com
Thu Sep 18 05:16:58 CEST 2008
Hi!
I'm using kupu editor in myfaces tomahawk inputHtml component. I have one
kupu html editor in my page and if I submit my page with that editor
containing an empty string, kupu sets its content to #000000 on page reload.
I've done some investigation and found out that kupucontentfilters.js
confuses the attribute 'text' with 'textContent'. The 'text' attribute
actually refers to the font-color, #000000, which is correct. But it should
not be set as the body content. The body content should come from
'textContent' attribute.
I've attached a patch for the latest development version here. I hope this
helps.
Best Regards,
Paul Rivera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/kupu-dev/attachments/20080918/625686c6/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kupucontentfilters.patch
Type: application/octet-stream
Size: 727 bytes
Desc: not available
Url : http://codespeak.net/pipermail/kupu-dev/attachments/20080918/625686c6/attachment.obj
More information about the kupu-dev
mailing list