Nearsighted Penguin March

    tinymce-ember

    4.0.0-1 • Public • Published

    tinymce-ember

    Build Status Ember Observer Score

    Ember addon that helps you integrate TinyMCE editor into your application.

    Compatibility

    • Ember.js v3.20 or above
    • Ember CLI v3.20 or above
    • Node.js v12 or above
    • ember-auto-import >= 2
    • Tinymce v5 or above

    Installation

    ember install tinymce-ember
    

    Note:

    The addon is designed in such way that it is the responsability of the application to provide the TinyMCE module.

    Install TinyMCE via package or via script.

    Motivation

    This addon is inspired by official TinyMCE React plugin tinymce-react.

    Its goal is to be a standard, drop-in solution for the ember community.

    Usage

    Place the {{editor}} modifier on any div, textarea to create a TinyMCE editor instance.

    Based on action up / data down principle, you can update your content.

    simple-example

    You can pass TinyMCE config object to your editor instance.

    inline-example

    You can turn on/off TinyMCE read-only mode dynamically.

    disabled-example

    API

    {{editor}}

    customEvents: Array

    Defaults to [].

    List of events given to the editor

    Type of event should be

    {
        name: string,
        handler: function
    }

    content: String

    Defaults to ''.

    A given string to be set as editor's content

    onEditorContentChange: String

    Defaults to 'change keyup setcontent'.

    Each of those events will call an onEditorContentChange function if given as parameter

    Thanks

    Contributing

    See the Contributing guide for details.

    License

    This project is licensed under the MIT License.

    Install

    npm i tinymce-ember

    DownloadsWeekly Downloads

    138

    Version

    4.0.0-1

    License

    MIT

    Unpacked Size

    17.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • ctjhoa
    • thiberaw
    • npmjs-concordnow
    • jonathan.pruvost