Csgs

How Can I Add a Button That Will Place Specific BBCode Tags Into a Text Area?

Asked by Csgs 2 years ago button text area tag bbcode


Themans
0
 
You can use HTML and some JavaScript. This will be simple code, if you're looking for the code to be highlighted then that's something a bit more complex:

HTML:

<button id="thebutton >Image</button >
<textarea id="thetextarea" ></textarea >

JavaScript:

$('thebutton').click(function(){
    $('#thetextarea').append('[img][/img]');
});

by Themans 2 years ago

Answer this question

How Can I Add a Button That Will Place Specific BBCode Tags Into a Text Area?

0 errors found:

 
0