Skip to content

Commit

Permalink
remove spellcheck from element
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Oct 22, 2024
1 parent 1fdf9eb commit 15dc73c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/src/bootstrap5/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class TiptapWidget {

constructor(elem, opts={}) {
elem.data('yafowil-tiptap', this);
elem.attr('spellcheck', false);
this.elem = elem;

this.controls = $('<div />')
Expand Down
1 change: 1 addition & 0 deletions src/yafowil/widget/tiptap/resources/bootstrap5/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ var yafowil_tiptap = (function (exports, $, bootstrap) {
}
constructor(elem, opts={}) {
elem.data('yafowil-tiptap', this);
elem.attr('spellcheck', false);
this.elem = elem;
this.controls = $('<div />')
.addClass('tiptap-controls btn-toolbar mb-2')
Expand Down
Loading

0 comments on commit 15dc73c

Please sign in to comment.