2 Replies - 391 Views - Last Post: 02 August 2012 - 09:40 AM

#1 StefanOnRails  Icon User is offline

  • D.I.C Head

Reputation: 35
  • View blog
  • Posts: 105
  • Joined: 31-July 12

problem with posting interface

Posted 02 August 2012 - 02:51 AM

Hi guys!

Ok, here's my problem: I'm trying to build an app for my website so I can post / edit articles (in order to do this I use a textarea box). The problem is I want to style some piece of text in this textarea, but I can't figure out how to enclose a particular amount of text between styling tags, for example I want to <b>bold this text</b> (similar to D.I.C posting system).
My previous attempts failed because the tags were always added at the end of the textarea.value, but I want to be able to select a specific paragraph add enclose it with tags.

Anyone knows how this is done?

Is This A Good Question/Topic? 0
  • +

Replies To: problem with posting interface

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5672
  • View blog
  • Posts: 22,520
  • Joined: 23-August 08

Re: problem with posting interface

Posted 02 August 2012 - 06:40 AM

You might want to try using something like TinyMCE.
Was This Post Helpful? 1
  • +
  • -

#3 StefanOnRails  Icon User is offline

  • D.I.C Head

Reputation: 35
  • View blog
  • Posts: 105
  • Joined: 31-July 12

Re: problem with posting interface

Posted 02 August 2012 - 09:40 AM

TinyMCE is perfect for my website!
You saved me from a lot of work, thanks a lot :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1