How to create library of HTML snippets to use in posts

You can use jquery to achieve this. like a button on click of it, you can append in the article textbox or input. like

    $('#boldbutton').on('click',function(){
$('#textid').append('<b></b>');
});

Like above you can create as many as button you like to have.