Hey

I was wondering how you allow the user to highlight text they've typed (in a form) and click a button to edit its style (placing tags around the highlighted text).

Could someone explain this a little further and perhaps provide an example.

Thanks in advance.

Recommended Answers

All 3 Replies

That looks great, thank you very much!

While I'm here I wonder if you could help with a problem I'm having...
I have something in a db and Im pulling it into my html sheet.
This is what is in the database ....

<font color='pink'> listen </font> now!

But what's printed on the page is:
<font color='pink'> listen </font> now!

Any ideas?


Thanks

Sorry the quote above isn't working properly.
Basically the string is in entities..

Daniweb is putting quotes and changing them back though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.