Sceditor Bbcode To Html Parsing
Does anyone know which method or how to use the API in SCEditor so that it parses an input BBcode into HTML, instead of just parsing the textarea? I am aware of SBBCodeParser, but
Solution 1:
- Get value http://www.sceditor.com/api/sceditor/val/
- Convert BBCode into HTML http://www.sceditor.com/documentation/plugins/bbcode/#fromBBCode
You can do like this
var val = $('textarea').sceditor('instance').val();
var result = $('textarea').sceditor('instance').fromBBCode(val, true);
//result = html code
Post a Comment for "Sceditor Bbcode To Html Parsing"