Is there a tinymce plugin that wraps text within the tag? Something similar to the formatting option from the WYSIWYG of SO
A:
I found the answer on this blog post. It adds a button to the toolbar and also wraps the selected content. Code formatting can be achieved by using prettify