NetTalk Central

Author Topic: html textarea in a browse  (Read 3525 times)

GordonF

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
html textarea in a browse
« on: November 05, 2021, 03:22:25 AM »
Is there a way to have an html textarea in a browse?

I realise that strings can become multi-line if long enough but only by word wrapping, line breaks are not respected. I really need a method to correctly display text containing line breaks in a browse row, ideally limited to a number of lines with a scroll bar, no EIP ability is required for my needs so readonly is fine.

Gordon

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Re: html textarea in a browse
« Reply #1 on: November 05, 2021, 01:37:15 PM »
Check "Allow xHTML in column" for the column you want. General tab Column subtab.

As for limiting the number of lines, you will have to do that with css. max-height should do the trick.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: html textarea in a browse
« Reply #2 on: November 07, 2021, 06:29:34 PM »
if your strings contain line-breaks (ie <13,10>) and you want to display them preserved in HTML you can pass them through the StringTheory LinEndings method to convert them to html before displaying.

Cheers
Bruce

GordonF

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: html textarea in a browse
« Reply #3 on: November 08, 2021, 01:47:11 AM »
Many thanks for both of your help, I've used both suggestions and it works just fine, I can work on the line limit separately.

Gordon
« Last Edit: November 08, 2021, 02:12:45 AM by GordonF »