ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Error using summernote with bulma #37

Closed ThomasTJdev closed 5 years ago

ThomasTJdev commented 5 years ago

When editing pages with Summernote, bootstrap 4 is required due to the imported library. Check if BS4 is loaded else import normal summernote.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote-bs4.css" integrity="sha256-fPUAOwSYkVTnL8xdLidCEi5IxW+ZVfcmNJ4m/+EGVI8=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote-bs4.js" integrity="sha256-D7wVIdz0dDoz21KQ/Z1cFnFXyrPcomZKBrVGLWE8vhg=" crossorigin="anonymous" defer></script>

https://github.com/ThomasTJdev/nim_websitecreator/blob/master/nimwcpkg/tmpl/utils.tmpl#L378-L379

juancarlospaco commented 5 years ago

Some day a plugin to add https://microsoft.github.io/monaco-editor would be nice, but it pulls NodeJS and half NPM. (Long time I dont try using it maybe it improved I dunno)

Summernote 0.8.11 is the last one BTW.

ThomasTJdev commented 5 years ago

Fixed: ebdb25edc49d459b96c28b08ddd9f2fc660216bd

@juancarlospaco , open another tracker-issue for monaco?