Documentation
How to initialize UBBEditor?
How to obtain the contents of the editor?
In the server-side script, you can get, for example (PHP):
In Javascript, you can get through this form:
How to dynamically insert code into the editor?
ubbEditor's several method:
tinsertUBB(value): Insert UBB Code;
tinsertHTML(value): Insert HTML Code;
tGetUBB(): Get UBB Code;
tGetHTML(): Get HTML Code;
<script type="text/javascript" src="ubbeditor/ubbEditor.js"></script>
<textarea id="content" name="content" style="WIDTH: 600px; HEIGHT: 300px"></textarea>
<script type="text/javascript">
var nEditor = new ubbEditor('content');
nEditor.tInit('nEditor', 'ubbeditor/');
</script>
<textarea id="content" name="content" style="WIDTH: 600px; HEIGHT: 300px"></textarea>
<script type="text/javascript">
var nEditor = new ubbEditor('content');
nEditor.tInit('nEditor', 'ubbeditor/');
</script>
How to obtain the contents of the editor?
In the server-side script, you can get, for example (PHP):
$_POST['content']
In Javascript, you can get through this form:
<script type="text/javascript"> nEditor.tGetUBB();</script>
How to dynamically insert code into the editor?
<script type="text/javascript"> nEditor.tinsertUBB('[b]ABC[/b]');</script>
ubbEditor's several method:
tinsertUBB(value): Insert UBB Code;
tinsertHTML(value): Insert HTML Code;
tGetUBB(): Get UBB Code;
tGetHTML(): Get HTML Code;