Skip to content

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.

1 participant