I would make a small WYSIWYG editor similar to the one used by StackOverflow. In principle, it would have buttons like [quote] , and when this button is pressed, [quote] [/quote] should be inserted into the text field where the cursor is located or at the end of the rest of the text. If [quote][/quote] can be highlighted in some way, that would be even more excellent, but it is not required.
Is there any other WYSIWYG editor where you can add custom buttons, as a result of which custom text is added to the text box?
javascript jquery wysiwyg
Click upvote
source share