The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS css-tricks text-area controls for wp

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #41700

    i can not find a way or plugin to add such buttons. like a “code” button. how can i add this ability?

    Andy Howells

    Do you mean inside your admin section or front end for visitors to use?

    If it’s visitors, for example, comments, I just made this that you could use;

    Basically the JQuery takes the current value of the textarea, and then adds the required addition to it, in this case pre & code tags.

    Then they can type in to their hearts content. You’d have to edit the comments template of course to add in the link to add this code as well as adding the JQuery.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.