We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91af93 commit 2f1e8ebCopy full SHA for 2f1e8eb
1 file changed
src/components/BootstrapBlazor.SummerNote/Components/Editor/Editor.razor.js
@@ -1,4 +1,4 @@
1
-import '../../js/summernote-bs5.min.js'
+import '../../js/summernote-bs5.min.js'
2
import { addLink, addScript } from '../../../BootstrapBlazor/modules/utility.js'
3
import Data from '../../../BootstrapBlazor/modules/data.js'
4
import EventHandler from '../../../BootstrapBlazor/modules/event-handler.js'
@@ -175,7 +175,11 @@ export function getCode(id) {
175
}
176
177
export function reset(id) {
178
- const editor = Data.get(id)
+ const editor = Data.get(id);
179
+ if (!editor.$editor) {
180
+ return;
181
+ }
182
+
183
const context = editor.$editor.data('summernote')
184
185
const showSubmit = editor.el.getAttribute("data-bb-submit") === "true"
0 commit comments