SCEditor

How to insert quotes

Quote demo

Insert Quote | Insert Quote with author

Code behind

To insert a BBCode quote, just pass the BBCode to the insert() command. e.g.:

var textarea = document.getElementById('demo-quote');
// Get the editor instance
var editor = sceditor.instance(textarea);

// Insert some BBCode
editor.insert('[quote=author]This is an [b]example[/b] quote.[/quote]');