3 Replies - 205 Views - Last Post: 30 June 2013 - 08:56 AM

#1 maze123987  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-June 13

Form input question

Posted 29 June 2013 - 09:20 PM

Hi guys,
I have question.
Im trying to write some text editor with bbcodes etc.
I need to add some textbox in which i could add url to item (http://mfo3.pl/game/...w.php?t=a&id=20)
and after clicking "add" button it will add to textarea contents of div with class=icon
some ideas?
Is This A Good Question/Topic? 0
  • +

Replies To: Form input question

#2 maze123987  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-June 13

Re: Form input question

Posted 29 June 2013 - 10:19 PM

I want to add to this form (http://mfo3.webd.pl/test/cialoa.php) some function. Namely, text box where i could add url of item (thats example http://mfo3.pl/game/....php?t=a&id=20) and after clicking "add" button it should adds contents of <div class="icon" to my form (just like after clicking "bold" or "italic" now.
The example of contents <div class="icon" is
<div class="icon">
<div class="Animator animator-display" id="HJS66420338322" style="margin: 0px; overflow: hidden; background-image: url(http://mf3.pl/static/icons/Armors.png?4d91e94f); width: 24px; height: 24px; display: block; background-position: -240px -96px; background-repeat: no-repeat no-repeat;"></div>
</div>

Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: Form input question

Posted 30 June 2013 - 03:51 AM

This is not a PHP question at all. It's probably a Javascript question, but I'll move it to Web Development for more general purposes.

Why not use TinyMCE?
Was This Post Helpful? 0
  • +
  • -

#4 maze123987  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-June 13

Re: Form input question

Posted 30 June 2013 - 08:56 AM

I dont care of WYSIWYG i will use, but i dont know how to add this function.

Example of item doesnt word. Here is a new one http://mfo3.pl/game/...w.php?t=a&id=20
How could i edit my post?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1