Grow your CSS skills. Land your dream job.

css-tricks text-area controls for wp

  • # January 1, 2013 at 2:52 am

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

    # January 1, 2013 at 8:04 am

    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;

    http://codepen.io/andyunleashed/pen/GdDzc

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".