Nerdiest Precious Modules
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    simditor-htmlpublic

    simditor-html

    Add a HTML source editing button for Simditor. Use js-beautify for HTML formatting.

    Usage

    Reference button and dependency script on your page with Simditor:

    <script type="text/javascript" src="[path]/beautify-html.js"></script>
    <script type="text/javascript" src="[path]/simditor-html.js"></script>
     
    <link rel="stylesheet" href="[path]/simditor-html.css" media="screen" charset="utf-8" />

    Add html button config when you initialize Simditor:

    var editor = new Simditor({
      textarea: $('#txt-editor'),
      toolbar: ['bold', 'italic', 'underline', 'color', '|', 'ol', 'ul', '|', 'html']
    });

    Keywords

    none

    install

    npm i simditor-html

    Downloadsweekly downloads

    16

    version

    1.1.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar