Skip to content

Commit

Permalink
TINY-6585: Added console.error when advList has no List as dependency (
Browse files Browse the repository at this point in the history
…tinymce#6217)

* TINY-6585: Added console.log when advList has no List as dependency

* TINY-6585: Added eslint-disable-next-line no-console

* TINY-6585: Replaced capital p on plugin

* TINY-6585: Added changelog entry

* TINY-6585: Changed wording on error msg and changelog.
  • Loading branch information
wendelcosta authored Nov 19, 2020
1 parent 655605d commit 4da6a82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tinymce/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Version 5.7.0 (TBD)

Changed the `advlist` plugin to log a console error message when the `list` plugin isn't enabled #TINY-6585
Version 5.6.0 (2020-11-18)
Added new `BeforeOpenNotification` and `OpenNotification` events which allow internal notifications to be captured and modified before display #TINY-6528
Added support for `block` and `unblock` methods on inline dialogs #TINY-6487
Expand Down
3 changes: 3 additions & 0 deletions modules/tinymce/src/plugins/advlist/main/ts/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default () => {
if (editor.hasPlugin('lists')) {
Buttons.register(editor);
Commands.register(editor);
} else {
// eslint-disable-next-line no-console
console.error('Please use the Lists plugin together with the Advanced List plugin.');
}
});
};

0 comments on commit 4da6a82

Please sign in to comment.