Review Request: Fix for Text Editor stripping out rich text formatting in Kexi Forms

Jarosław Staniek staniek at kde.org
Thu Nov 1 00:10:22 GMT 2012



> On Oct. 31, 2012, 9:30 p.m., Dimitrios Tanis wrote:
> > kexi/plugins/forms/widgets/kexidbtextedit.cpp, line 140
> > <http://git.reviewboard.kde.org/r/107120/diff/1/?file=92884#file92884line140>
> >
> >     Why don't we make textEdit, rich text agnostic for max length? e.g.
> >     
> >     Replace lines 139-144 with:
> >     t = toPlainText();
> >     
> >     That way max length is presumed to be for the VISIBLE text (aka plainText) and not include markup when we have a rich text (that the user doesn't even see).
> >

This length is storage length, inherited from the database layer. If we change semantics here we can encounter error at database level.

We can introduce visualLength one day but that's different task.


- Jarosław


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107120/#review21264
-----------------------------------------------------------


On Oct. 30, 2012, 12:12 a.m., Jarosław Staniek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107120/
> -----------------------------------------------------------
> 
> (Updated Oct. 30, 2012, 12:12 a.m.)
> 
> 
> Review request for Calligra, Adam Pigg, Dimitrios Tanis, Radosław Wicik, and Oleg Kukharchuk.
> 
> 
> Description
> -------
> 
> Fix for Text Editor stripping out rich text formatting in Kexi Forms.
> 
> For 2.5.4 as well.
> 
> 
> This addresses bug 309174.
>     http://bugs.kde.org/show_bug.cgi?id=309174
> 
> 
> Diffs
> -----
> 
>   kexi/plugins/forms/widgets/kexidbtextedit.cpp 2216e0c78d686ae5dbe40b7979b1ee7a62f6f789 
> 
> Diff: http://git.reviewboard.kde.org/r/107120/diff/
> 
> 
> Testing
> -------
> 
> Properly saves and displays text when rich text property is on or off
> 
> 
> Thanks,
> 
> Jarosław Staniek
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20121101/7c139bbc/attachment.htm>


More information about the calligra-devel mailing list