- 1.0.0 allow to get position of any block
- 2.0.0 caret position and inject support
- 3.0.0 scrollToBlock fixed, sync works, add/remove block still buggy, packaging added
- Provides Block.init() to all this Plugins extensions to editor
Left button allows to go to a block by its position, and then the [current position] / [total blocks]
Requires both editorjs-undo with Big Brother feature and Undo Plugin initialization Plugin
Add a line in either your example.html, after the script-loader line in the loadPlugins section
/**
* Plugins
*/
await loadPlugins([
{'sosie-js/script-loader@3.0.0': '[example/plugins/script-loader](https://github.com/sosie-js/script-loader)'}, //virtual , already loaded we keep a version trace here
{'sosie-js/block-plugin@3.0.0': ['[example/plugins/view-plugin](https://github.com/sosie-js/view-plugin)',['dist/bundle.js','dist/sample.js']]}
],nocache,mode,target);To produce the dist/bundle.js for production use the command:
yarn build