UNPKG

2.5 kBMarkdownView Raw
1# Quill composer for NodeBB
2
3This plugin activates the WYSIWYG Quill composer for NodeBB. Please ensure that:
4
5* The markdown plugin is disabled (see note below, re: markdown)
6* Any other composers (i.e. nodebb-plugin-composer-default) are disabled
7* **Warning** This composer saves its data in a unique format that is only compatible with Quill. If you switch to Quill, any posts made with Quill cannot be migrated back to Markdown.
8
9## For developers
10
11You may encounter a LESS build error when this module is not installed via npm:
12
13```
14error: [build] Encountered error during build step
15Error: FileError: './quill/dist/quill.bubble.css' wasn't found. Tried - /some,/directories,/here
16/quill.bubble.css,quill/dist/quill.bubble.css in /path/to/nodebb/node_modules/nodebb-plugin-composer-quill/static/less/quill.less on line 2, column 1:
17```
18
19This is due to npm/yarn's flattening of dependencies. Quill expects these css files to be at root level, so to get around this:
20
21`cd /path/to/nodebb/node_modules && ln -s nodebb-plugin-composer-quill/node_modules/quill .`
22
23## Migration concerns
24
25### nodebb-plugin-composer-default/nodebb-plugin-markdown
26
27If you used the default composer, chances are you also had the markdown plugin active. If that is the case, any posts made before the switch are still in markdown format, and are not saved into html (in a manner than quill can digest). A migrator tool has been bundled with v1.1 of the Quill Composer, which you can use to migrate posts in markdown and html into the Quill-compatible format.
28
29### nodebb-plugin-redactor
30
31Your posts should automatically work with Quill. Redactor saves HTML into the database, and the Quill plugin is set up so it can digest that html and backport it to Quill's internal format if the post is edited. That said, when you edit a post originally made in Redactor, you'll see the html tags, which are now extraneous. You can remove them as part of your edit. Alternatively, you can use the bundled migrator to convert posts to the Quill-compatible format.
32
33## Contributors Welcome
34This plugin is considered _production ready_. Please report any bugs to our issue tracker and we will take a look.
35
36If you'd like to look at the [documentation](https://quilljs.com/docs/) and add a feature, or take a look at the GitHub Issues and do something from there then please do. All pull requests lovingly reviewed.
37
38## Screenshots
39
40### Desktop
41
42![Desktop](/screenshots/desktop.png)
43
44### Mobile
45
46![Mobile](/screenshots/mobile.png)