I can't get either of these attributes to work with textarea.
Is this possible?
Disabled or Readonly attributes with Textarea?
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Disabled or Readonly attributes with Textarea?
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: Disabled or Readonly attributes with Textarea?
Nope. I would instead just post the text given whatever condition makes the textarea disabled. Maybe spruce it up with a border to have it resemble the textarea box.Full Bleed wrote:I can't get either of these attributes to work with textarea.
Is this possible?
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Disabled or Readonly attributes with Textarea?
This arose out of adapting your edit notes code to have a display only option. But the notes only render properly formatted in a textarea. So I'm not sure how to do what you are suggesting here.aliasmask wrote:Nope. I would instead just post the text given whatever condition makes the textarea disabled. Maybe spruce it up with a border to have it resemble the textarea box.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: Disabled or Readonly attributes with Textarea?
The text replacements for displaying text inside the textarea are different that what is needed to display the raw text without having html show up. In most cases all you need to do is replace the < with < and you're good if you want to display the literal text without html.Full Bleed wrote:This arose out of adapting your edit notes code to have a display only option. But the notes only render properly formatted in a textarea. So I'm not sure how to do what you are suggesting here.aliasmask wrote:Nope. I would instead just post the text given whatever condition makes the textarea disabled. Maybe spruce it up with a border to have it resemble the textarea box.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Disabled or Readonly attributes with Textarea?
I guess I'm not making myself clear.aliasmask wrote:The text replacements for displaying text inside the textarea are different that what is needed to display the raw text without having html show up. In most cases all you need to do is replace the < with < and you're good if you want to display the literal text without html.
I want to display the notes in a dialog, with all the proper carriage returns and formatting, but *not* be in an editable box (hence the reason I wanted to make the textarea readonly or disabled)
Everytime I try putting the text outside a textarea, it's one run-on block of unformatted text.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: Disabled or Readonly attributes with Textarea?
Did you try putting <html></html> tags around it? Or try some other tags like <div>? I've had some success using tags like <pre> and such in random areas of MT and it working...
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork