Re: Chat and textarea formatting

2023-02-16 Thread Richard Gaskin via use-livecode
Rick Harrison wrote: > Richard wrote: >> I find that a lot of this boils down to the Clipboard more >> than a browser being able to know what it's rendering. .. > When I copy colored text or bold faced text > from TextEdit and pasted it into the box it > doesn’t carry over. > > Of course if I cop

Re: Chat and textarea formatting

2023-02-16 Thread harrison--- via use-livecode
Hi Richard, Thanks for the better example code. When I copy colored text or bold faced text from TextEdit and pasted it into the box it doesn’t carry over. Of course if I copy the one sample line you provided that copies fine and renders fine. I also tried creating some text with bold and color

Re: Chat and textarea formatting

2023-02-16 Thread Alex Tweedly via use-livecode
Of course, the other option - depending on your timescale (and maybe your license) - would be to build it as a LC app, and then 'build for web'. That way you'd have control over the formatting options you want to allow/provide. Alex P.S. but then, I'm strongly averse to any use of JS, HTML,

Re: Chat and textarea formatting

2023-02-15 Thread Richard Gaskin via use-livecode
What is the "junk" you're seeing for apostrophes? Could it be the Unicode number or character entity? RE lost styles, like bold and color, are those rendered in the editable field before obtaining the innerHTML? I find that a lot of this boils down to the Clipboard more than a browser being

Re: Chat and textarea formatting

2023-02-15 Thread harrison--- via use-livecode
Hi Richard, It takes care of the line spacing problem fine which is good! It doesn’t like apostrophes in words, and returns garbage for that. It doesn’t keep any bold facing or text coloring information. Thanks for this suggestion. Rick > On Feb 15, 2023, at 4:52 AM, Richard Gaskin via use-

Re: Chat and textarea formatting

2023-02-15 Thread Richard Gaskin via use-livecode
Rick Harrison wrote: > I have to create a little chat program with LiveCode on a LiveCode > server. Currently I have a textarea text box to accept the user’s > input, but it won’t keep any formatting at all, not even carriage > returns, line feeds, or bold faced text. I also have to put that > i

Re: Chat and textarea formatting

2023-02-14 Thread harrison--- via use-livecode
Hi Alex, Once the HTML is sent, then it becomes an LC thing, because I have to put the information into an LC variable, and then after doing a little work on it, put it into the database using LC database stuff. If LC had a way to provide direct inputs fields into webpages it would be a totally L

Re: Chat and textarea formatting

2023-02-14 Thread Alex Tweedly via use-livecode
It's not really a LC question, it's an HTML thing :-) textarea etc. only handle plain (unformatted) text. Googling for suggestions I can only find two common answers: 1. horribly complicated ways to add Javascript to your script to handle formatting 2. "use TinyMCE" I'd go for the second al

Re: Chat and textarea formatting

2023-02-14 Thread harrison--- via use-livecode
Hi Craig, No. I have an HTML5 Here’s an example from W3Schools: textarea { resize: none; } The textarea element - Disable default resize option Review of W3Schools: At w3schools.com you will learn how to make a website. They offer free tutorials in all web development technologie

Re: Chat and textarea formatting

2023-02-14 Thread Craig Newman via use-livecode
Hi. Not sure I understand. You have an editable field that you cannot type into? Do you get a blinking cursor in that field if you click inside it? Perhaps some properties for that field are such that LC is preventing access? Craig > On Feb 14, 2023, at 3:35 PM, harrison--- via use-livecode

Chat and textarea formatting

2023-02-14 Thread harrison--- via use-livecode
Greetings LC List Members, I have to create a little chat program with LiveCode on a LiveCode server. Currently I have a textarea text box to accept the user’s input, but it won’t keep any formatting at all, not even carriage returns, line feeds, or bold faced text. I also have to put that inform