textarea-editor component on top of i-bem.js
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
common.blocks
.eslintignore
.eslintrc
.gitignore
.stylelintrc
.travis.yml
CHANGELOG.md
README.md
bower.json
package.json

README.md

bem-textarea-editor

textarea-editor component based on i-bem.js.

Demo.

Uses textarea-editor under the hood. Depends on bem-font-awesome-icons.

Installation

  1. Install packages via npm
npm i bem-textarea-editor bem-font-awesome-icons --save-dev

or bower

bower i bem-textarea-editor bem-font-awesome-icons --save
  1. Add bem-textarea-editor/common.blocks and bem-font-awesome-icons as redefinition levels to your build config.

Usage

{
    block: 'editor',
    mods: {
        theme: 'islands',
        size: 'm',
        width: 'available',
        mode: 'source',
        renderer: 'marked',
        'has-preview': true,
        'has-actions': true
    }
}