Skip to content

Commit

Permalink
refactor: Load inscrybmde async
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitcheljager committed Nov 18, 2024
1 parent d91f5a1 commit 69388d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/javascript/src/inscryb-mde.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import InscrybMDE from "inscrybmde"
import InscrybeInsertImage from "@src/inscrybe-mde-paste-image"
import InscrybeInsertVideo from "@src/inscrybe-mde-insert-video"
import FetchRails from "@src/fetch-rails"
Expand Down Expand Up @@ -121,7 +120,9 @@ class InitialiseInscrybeMDE {
return toolbar
}

initialise() {
async initialise() {
const { default: InscrybMDE } = await import("inscrybmde")

this.mde = new InscrybMDE({
element: this.element,
autoDownloadFontAwesome: false,
Expand Down

0 comments on commit 69388d7

Please sign in to comment.