Styled Text Editor Component maximum size limit

Hi Appian Developers (and Community of course),

I hope that somebody from the Apprian Dev Team could answer / provide info.

I'm using the Styled Text Editor Component component (a!styledTextEditorField) to display content stored as HTML (display only, no edit required).

I'm wondering that is the exact maximum allowable value for the Size limit parameter? 

When I set 100K, it prompts "You reached the maximum character limit. Remove characters to continue." (it is an email conversation stored as html and it is expected to be large in size).

When I reduce it to 99K (set value for Size limit parameter to 99K), the error is gone.

Obviously, it lays somewhere between 99K and 100K but I would like to know what is the maximum allowed, to be able to display as much as possible of the text.

Or does it maybe depend on the encoding - single-byte/multi-byte?

However, the documentation states "... The parameter value is about equal to the number of characters allowed, including HTML formatting." - no mention of encoding.

In any case, I need info what is the maximum allowed, either in characters or bytes.

Thank You in advance for your time.

Regards,

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Associate Developer

    100K is the limit including tags

  • Thank You all for your answers.

    Even the maximum value for sizeLimit is 100K, the component in read-only mode will not accept text size greater then 99906 characters (or bytes, not sure - the text I tested is Latin1). As Mike suggested, I tested it by reducing the maximum size limit until I get to 99906.

    I see now that my question was misleading and that it should be "What is the maximum text size a Styled Text Editor Component will accept without error".

    I suppose, the component wraps the source text into an additional layer that is also counted into this 100K. This is probably what Mr. Soma suggested by "including the HTML tags" - as my text was already HTML, I didn't realize it immediately.

    This is my code (that works) - when I increase the text size by 1, I get the error "You reached the maximum character limit...".

    a!styledTextEditorField(
      readOnly: true,
      value: left(fv!item.HtmlBody, 99906)
    )

    To be clear - there is no difference if I put a value for parameter sizeLimit - 100K seems as the default value when not explicitly set. 

Reply
  • Thank You all for your answers.

    Even the maximum value for sizeLimit is 100K, the component in read-only mode will not accept text size greater then 99906 characters (or bytes, not sure - the text I tested is Latin1). As Mike suggested, I tested it by reducing the maximum size limit until I get to 99906.

    I see now that my question was misleading and that it should be "What is the maximum text size a Styled Text Editor Component will accept without error".

    I suppose, the component wraps the source text into an additional layer that is also counted into this 100K. This is probably what Mr. Soma suggested by "including the HTML tags" - as my text was already HTML, I didn't realize it immediately.

    This is my code (that works) - when I increase the text size by 1, I get the error "You reached the maximum character limit...".

    a!styledTextEditorField(
      readOnly: true,
      value: left(fv!item.HtmlBody, 99906)
    )

    To be clear - there is no difference if I put a value for parameter sizeLimit - 100K seems as the default value when not explicitly set. 

Children