Upload image

This example shows the basic setting for uploading images. See the documentation for more details.


<!DOCTYPE html>
    <title>Article Editor</title>
    <meta charset="utf-8">

    <!-- css -->
    <link rel="stylesheet" href="/your-article-dist-path/article-editor.min.css" />
    <!-- element -->
    <textarea id="entry">

    <!-- js -->
    <script src="/your-article-dist-path/article-editor.min.js"></script>

    <!-- call -->
    ArticleEditor('#entry', {
        css: '/your-article-dist-path/',
        image: {
            upload: '/image-uploader-path/'


The editor sends a POST request to the specified path to an uploader on the server. The server-side script should generate a JSON as the response, like this:

    "file": {
        "url": "image-url.jpg",
        "id": "some-id"