I've been looking for a way to add tags to selected text in a textarea by clicking a button. Exactly like the php button works here when you write the forum post. Does anyone know how this is done or where I should look to find out?

Comments

Ayesh’s picture

Try WYSIWYG module.

numfar85’s picture

Can you create your own tags in WYSIWYG?

Ayesh’s picture

Not easily.
Wysiwyg is actually a "broker" module that let's you deal with editors like tinymce and ckeditor.

You can however add custom tags by using a custom module. Most HTML tags are already there though.