diff --git a/app/assets/stylesheets/new_editor.scss b/app/assets/stylesheets/new_editor.scss index e3f785b7..9acf4941 100644 --- a/app/assets/stylesheets/new_editor.scss +++ b/app/assets/stylesheets/new_editor.scss @@ -13,5 +13,10 @@ } } } + + .ProseMirror, + & > ol li { + @extend .mb-3; + } } } diff --git a/app/javascript/etc/new_editor.js b/app/javascript/etc/new_editor.js index d4b47ce8..0a7842ae 100644 --- a/app/javascript/etc/new_editor.js +++ b/app/javascript/etc/new_editor.js @@ -1,5 +1,7 @@ import SuttyEditor from "@suttyweb/editor"; +import "@suttyweb/editor/dist/editor.css"; + document.addEventListener("turbolinks:load", () => { document.querySelectorAll(".new-editor").forEach((editorContainer) => { new SuttyEditor({ diff --git a/package.json b/package.json index 78e839d9..42643ad4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "@rails/activestorage": "^6.1.3-1", "@rails/ujs": "^6.1.3-1", "@rails/webpacker": "5.2.1", - "@suttyweb/editor": "^0.1.11", + "@suttyweb/editor": "^0.1.12", "babel-loader": "^8.2.2", "chart.js": "^3.5.1", "chartkick": "^4.0.5", diff --git a/yarn.lock b/yarn.lock index d9e93c5f..5350bb6c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1171,10 +1171,10 @@ resolved "https://registry.yarnpkg.com/@stimulus/webpack-helpers/-/webpack-helpers-1.1.1.tgz#eff60cd4e58b921d1a2764dc5215f5141510f2c2" integrity sha512-XOkqSw53N9072FLHvpLM25PIwy+ndkSSbnTtjKuyzsv8K5yfkFB2rv68jU1pzqYa9FZLcvZWP4yazC0V38dx9A== -"@suttyweb/editor@^0.1.11": - version "0.1.11" - resolved "https://registry.yarnpkg.com/@suttyweb/editor/-/editor-0.1.11.tgz#9f69fa0b66457a63419e744216d24e44d17a77a2" - integrity sha512-kYZYFf3aAhUdDoWuLZg5BsKXvwuttMmpM31dRg+SyeslUsZLetLGaeXqsWVeh8G13VS+t4s5OrncTOkAHlOlBw== +"@suttyweb/editor@^0.1.12": + version "0.1.12" + resolved "https://registry.yarnpkg.com/@suttyweb/editor/-/editor-0.1.12.tgz#afcd2497d632b508f405fb484b3bb0a3ea1dd5f7" + integrity sha512-UjQcAuGJQpaOoN5U0cBYh0MLmSfakThVr2gkdInxx47/ApYlj5GoZ5BkbQ6lDSLeFzlyGOuiuj334VzKdxSB5A== "@types/caseless@*": version "0.12.2"