-
Notifications
You must be signed in to change notification settings - Fork 352
v2.x Upgrading from v0.3
Upgrading from v0.3 to v2.x should be quick and easy and consists of these steps:
Version 2.x has a little more dependencies than the previous one (jQuery and MediumEditor stay the same obviously). If you downloaded the plugin via Bower, all dependencies were downloaded automatically for you. If you prefer manual download, please, remember to download the dependencies, too.
List of new dependencies:
- Handlebars: ~4.0.0
- jQuery File Upload Plugin: ~9.11.1
- jQuery Sortable: ~0.9.12
<!-- New JS dependencies -->
<script src="bower_components/handlebars/handlebars.runtime.min.js"></script>
<script src="bower_components/jquery-sortable/source/js/jquery-sortable-min.js"></script>
<!-- Unfortunately, jQuery File Upload Plugin has a few more dependencies itself -->
<script src="bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js"></script>
<script src="bower_components/blueimp-file-upload/js/jquery.iframe-transport.js"></script>
<script src="bower_components/blueimp-file-upload/js/jquery.fileupload.js"></script>
Main JS file has changed from medium-editor-insert-plugin**.all.min.js** to medium-editor-insert-plugin**.min.js**.
Also separate addon files were deleted from dist/ folder. If you want, you can still find them in src/ folder.
Minimal configuration needed now is:
$(function () {
$('.editable').mediumInsert({
editor: editor
});
});
Configuration of addons was changed - please go to v2.x Configuration to see the new options.
Beginning options, table addon and registerAddon and getAddon methods were dropped altogether.
That's all.