Skip to content

Stevearzh/qseditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qseditor

BBS post editor, markdown/bbcode supported.

Demo

https://stevearzh.github.io/qseditor

Author

Markdown

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

BBCode syntax see here.

Usage

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.

Config

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!

Others

Also, we use these libraries in our project: