Skip to content

Commit

Permalink
Add role to toolbar (slab#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
luin authored Aug 25, 2023
1 parent 68f4629 commit e33f352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Toolbar extends Module<ToolbarProps> {
super(quill, options);
if (Array.isArray(this.options.container)) {
const container = document.createElement('div');
container.setAttribute('role', 'toolbar');
addControls(container, this.options.container);
quill.container?.parentNode?.insertBefore(container, quill.container);
this.container = container;
Expand Down

0 comments on commit e33f352

Please sign in to comment.