Hi "Shared account for Magnolia Training users" The problem with rich text (i.e. HTML) is of course that you cannot cut the text anywhere because you will most likely end up with malformed HTML. So if you only need to validate the text length, you could use one the HTML parsing libraries, strip the html tags and validate the remaining text. However if you want to cut the text (e.g. for a teaser) AND still keep the formatting, things might be a bit more difficult.
Best regards, -will On 10.06.2014, at 08:34, Shared account for Magnolia Training users (via Magnolia Forums) <[email protected]> wrote: > I need to configure java based maxlenght business rule for Ritch Text Editor. > Can anyone help how can i configure in java? > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=2128736b-2c98-4fec-8ecf-b64b882ff957 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
