Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding AceEditor-adapter #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SergTyapkin
Copy link

Changed Gruntfile to build adapters in separation of main code.
Changed tests to work with that structure.

Now this lib supports 2 editors - CodeMirror and AceEditor.
You just need two imports to make it works. (in ES6)

  1. import 'ot.min.js';
  2. import 'codemirror-adapter.min.js'; or import 'aceeditor-adapter.min.js';
    (or *.js instead of *.min.js)

or use it with ES5 style with including in HTML:

// ...
<body>
   // link codemirror or aceeditor original lib there
  <script src="../../dist/ot.js"></script>
  <script src="../../dist/codemirror-adapter.js"></script> // or <script src="../../dist/aceeditor-adapter.js"></script>
  // ...
</body>

Changed Gruntfile to build adapters in separation of main code.
Changed tests to work with that structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant