Giter VIP home page Giter VIP logo

react-tinymce's Introduction

react-tinymce

React TinyMCE component

Installing

$ npm install react-tinymce

Demo

http://instructure-react.github.io/react-tinymce/

Example

import React from 'react';
import ReactDOM from 'react-dom';
import TinyMCE from 'react-tinymce';

const App = React.createClass({
  handleEditorChange(e) {
    console.log(e.target.getContent());
  },

  render() {
    return (
      <TinyMCE
        content="<p>This is the initial content of the editor</p>"
        config={{
          plugins: 'autolink link image lists print preview',
          toolbar: 'undo redo | bold italic | alignleft aligncenter alignright'
        }}
        onChange={this.handleEditorChange}
      />
    );
  }
});

ReactDOM.render(<App/>, document.getElementById('container'));

Dependency

This component depends on tinymce being globally accessible.

<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>

Contributing

install your dependencies:

npm install

rackt-cli depends on a version of babel-eslint that will not run successfully with the rest of this project. Until an upgrade is available, after installing, edit "node_modules/rackt-cli/package.json" and update it's babel-eslint to at least 4.1.7. Then npm install in the rackt directory, and return to project root. From here on you need to use the rackt version in node modules, so either alias "rackt" to it's bin, or just path each command into node_modules/.bin like below.

To make sure the linter is happy and the functional tests run, execute:

./node_modules/.bin/rackt test

To release, you'll need to be an npm owner for react-tinymce, and already have your machine currently authed with npm adduser

https://docs.npmjs.com/cli/adduser

use ./node_modules/.bin/rackt release

License

MIT

react-tinymce's People

Contributors

apelican avatar brentropy avatar designfrontier avatar evizitei avatar gabiaxel avatar meirish avatar mzabriskie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.