Open cisnerosebastian opened 6 months ago
I support this as well. Since composer-redactor has been abandoned (and also does not work with v3), composer-quill was the only WYSIWYG editor left.
Trying to use it with NodeBB v3.7.3 brings the following error:
npm install nodebb-plugin-composer-quill
./nodebb reset -p nodebb-plugin-composer-default
./nodebb reset -p nodebb-plugin-markdown
./nodebb build
2024-04-05T09:17:45.395Z [5678/139757] - info: [build] Building in parallel mode 2024-04-05T09:17:45.396Z [5678/139757] - info: [build] plugin static dirs build started 2024-04-05T09:17:45.396Z [5678/139757] - info: [build] requirejs modules build started 2024-04-05T09:17:45.396Z [5678/139757] - info: [build] client js bundle build started 2024-04-05T09:17:45.397Z [5678/139757] - info: [build] admin js bundle build started 2024-04-05T09:17:45.397Z [5678/139757] - info: [build] client side styles build started 2024-04-05T09:17:45.397Z [5678/139757] - info: [build] admin control panel styles build started 2024-04-05T09:17:45.397Z [5678/139757] - info: [build] templates build started 2024-04-05T09:17:45.398Z [5678/139757] - info: [build] languages build started 2024-04-05T09:17:45.575Z [5678/139757] - info: [build] plugin static dirs build completed in 0.179sec 2024-04-05T09:17:46.232Z [5678/139757] - info: [build] client js bundle build completed in 0.836sec 2024-04-05T09:17:46.232Z [5678/139757] - info: [build] admin js bundle build completed in 0.835sec 2024-04-05T09:17:46.392Z [5678/139757] - warn: [meta/templates] Partial not loaded: partials/category-selector.tpl 2024-04-05T09:17:46.918Z [5678/139757] - info: [build] requirejs modules build completed in 1.522sec 2024-04-05T09:17:46.919Z [5678/139757] - info: [build] Bundling with Webpack. 2024-04-05T09:17:46.971Z [5678/139757] - info: [build] languages build completed in 1.573sec [10%] building (3/27 modules) [10%] building (32/261 modules) 2024-04-05T09:17:49.291Z [5678/139757] - info: [build] admin control panel styles build completed in 3.894sec 332 assets 797 modules
ERROR in ./node_modules/nodebb-plugin-composer-default/static/lib/composer.js Module not found: Error: Can't resolve 'composer/post-queue' in '/var/lib/nodebb-test/node_modules/nodebb-plugin-composer-default/static/lib' Did you mean './composer/post-queue'? Requests that should resolve in the current directory need to start with './'. Requests that start with a name are treated as module requests and resolve within module directories (build/public/src/modules, build/public/src, node_modules, node_modules/nodebb-theme-persona/> node_modules, node_modules/nodebb-widget-essentials/node_modules, node_modules/nodebb-plugin-emoji/node_modules, node_modules/nodebb-plugin-spam-be-gone/node_modules, node_modules/> nodebb-rewards-essentials/node_modules, node_modules/nodebb-plugin-dbsearch/node_modules, node_modules/nodebb-plugin-emoji-android/node_modules, node_modules/nodebb-plugin-newuser-approval/> node_modules, node_modules/nodebb-plugin-mentions/node_modules, node_modules/nodebb-plugin-composer-quill/node_modules, node_modules/nodebb-plugin-poll/node_modules, node_modules/> nodebb-plugin-composer-default/node_modules). If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
ERROR in ./node_modules/nodebb-plugin-composer-default/static/lib/composer/categoryList.js 100:2-111:4 Module not found: Error: Can't resolve 'composer/post-queue' in '/var/lib/nodebb-test/node_modules/nodebb-plugin-composer-default/static/lib/composer'
webpack 5.90.3 compiled with 2 errors in 3944 ms 2024-04-05T09:17:51.373Z [5678/139757] - info: [build] Asset compilation successful. Completed in 5.967sec.
Is there any update on this?
Is there a plan to update composer quill to work with nodebb v3?