BBS post editor, markdown/bbcode supported.
https://stevearzh.github.io/qseditor
Markdown-mode is the default mode, but you can easily switch to bbcode-mode by click the switch tag on the top-left corner of editor.
If you want to know more about markdown syntax, click here.
BBCode syntax see here.
First, add
<link rel="stylesheet" href="<path>/build/qse.min.css">
in <head>
tag.
Then, add
<script src="<path>/build/JavaScript-MD5/md5.min.js"></script>
<script src="<path>/build/js-base64/base64.min.js"></script>
<script src="<path>/build/md2bbc/showdown.min.js"></script>
<script src="<path>/build/md2bbc/mkd.js"></script>
<script src="<path>/build/bbcode/bbcode.js"></script>
<script src="<path>/build/qse.min.js"></script>
at the bottom of <body>
element.
Finally, add
<div id="qse"></div>
to where you want the editor appear.
Open qse.min.js
(or qse.js
, then minimize the script yourself after modification), change formDataURL
, Bucket
and API
to your own value.
formDataURL: '/post.php'; // Post URL
Bucket: 'qseditor'; // Your UPCloud bucket name
API: 'hXTO2xagYw98S646UEyRh7BJ+DM='; // Your bucket API
Notice: Only UPCloud is supported!
Also, we use these libraries in our project: