Skip to content

Moving away from the quill.js plugin

Unsolved Customisation
12 2 4.2k 1
  • wrote on last edited by
    #1

    I installed quill to check it out in a forum that is not in production yet. I didn’t save a single post into the database (I know it stores html, not markdown). I then proceeded to remove it. Not only deactivated, but also uninstalled the plugin. I don’t see the plugin on plugins. I pressed ‘rebuild and restart forum’,

    Yet I still see it on the dropdown list of plugins:
    1f02c3f1-919d-4964-b7fb-deb415396f9f-image.png

    And when I try to post, I get the quill interface, not the default one.
    My guess is that the forum didn’t ’ ‘rebuild and restart.’

    How can I test this hypothesis? Anything else you would test?

  • I installed quill to check it out in a forum that is not in production yet. I didn’t save a single post into the database (I know it stores html, not markdown). I then proceeded to remove it. Not only deactivated, but also uninstalled the plugin. I don’t see the plugin on plugins. I pressed ‘rebuild and restart forum’,

    Yet I still see it on the dropdown list of plugins:
    1f02c3f1-919d-4964-b7fb-deb415396f9f-image.png

    And when I try to post, I get the quill interface, not the default one.
    My guess is that the forum didn’t ’ ‘rebuild and restart.’

    How can I test this hypothesis? Anything else you would test?

    wrote on last edited by
    #2

    @qwinter yes. I’d test by using the cli, so npm remove nodebb-plugin-xxx (where xxx is the plugin name or identifier). I’ve had this before myself so took this route which solved the problem.

  • @qwinter yes. I’d test by using the cli, so npm remove nodebb-plugin-xxx (where xxx is the plugin name or identifier). I’ve had this before myself so took this route which solved the problem.

    wrote on last edited by
    #3

    @phenomlab said in Moving away from the quill.js plugin:

    npm remove nodebb-plugin

    Thanks @phenomlab . I tried that but got:

    npm WARN reify Removing non-directory /app/code/node_modules
    npm ERR! code EROFS
    npm ERR! syscall unlink
    npm ERR! path /app/code/node_modules
    npm ERR! errno -30
    npm ERR! rofs EROFS: read-only file system, unlink '/app/code/node_modules'
    npm ERR! rofs Often virtualized file systems, or other file systems
    npm ERR! rofs that don't support symlinks, give this error.
    

    As root (on a cloudron install of nodebb, so I imagine it’s a docker env).
    Any idea what could be wrong?

    The comporser that shows up when trying to post is quill.js. But I get this error too:

    ×ERROR
    Invalid event: plugins.composer-quill.getEmojiTable
    

    Wow, it looks like the plugin situation with nodebb is a minefield. Barely touched the install and it’s already giving me hard-to-debug problems. Perhaps the best way to go is to start from scratch, and make it mega-vanilla, no plugins whatsoever 🙂

  • @phenomlab said in Moving away from the quill.js plugin:

    npm remove nodebb-plugin

    Thanks @phenomlab . I tried that but got:

    npm WARN reify Removing non-directory /app/code/node_modules
    npm ERR! code EROFS
    npm ERR! syscall unlink
    npm ERR! path /app/code/node_modules
    npm ERR! errno -30
    npm ERR! rofs EROFS: read-only file system, unlink '/app/code/node_modules'
    npm ERR! rofs Often virtualized file systems, or other file systems
    npm ERR! rofs that don't support symlinks, give this error.
    

    As root (on a cloudron install of nodebb, so I imagine it’s a docker env).
    Any idea what could be wrong?

    The comporser that shows up when trying to post is quill.js. But I get this error too:

    ×ERROR
    Invalid event: plugins.composer-quill.getEmojiTable
    

    Wow, it looks like the plugin situation with nodebb is a minefield. Barely touched the install and it’s already giving me hard-to-debug problems. Perhaps the best way to go is to start from scratch, and make it mega-vanilla, no plugins whatsoever 🙂

    wrote on last edited by
    #4

    @qwinter which version of NodeBB is this ?

  • @qwinter which version of NodeBB is this ?

    wrote on last edited by
    #5

    @phenomlab NodeBB 2.0.0

  • @phenomlab NodeBB 2.0.0

    wrote on last edited by
    #6

    @qwinter That’s likely the reason why. That version is buggy presently.

  • @qwinter That’s likely the reason why. That version is buggy presently.

    wrote on last edited by
    #7

    @phenomlab thanks so much. This saves so much time. Argh. I’m running nodebb on cloudron. And they push versions to production whenever they feel like (quite fast I must say). They don’t track whether the app is buggy on that version it seems.

    That means that any time they could break my production site without me doing anything. I’m glad I realized this before going any further.

  • @phenomlab thanks so much. This saves so much time. Argh. I’m running nodebb on cloudron. And they push versions to production whenever they feel like (quite fast I must say). They don’t track whether the app is buggy on that version it seems.

    That means that any time they could break my production site without me doing anything. I’m glad I realized this before going any further.

    wrote on last edited by
    #8

    @qwinter yeah, it was pretty broken when I checked it last around a week ago - it was so bad in fact, that I landed up rolling back to 1.19.7 in my Dev environment.

    Version 2.0 is quite the departure as it uses webpack. I’ve seen on GitHub that 2.01 is in the works which I think it’s going to fix (hopefully) these issues. From my perspective, I will remain on the 1.19.7 train for a while as 2.0 is currently a little too bleeding edge for my liking.

    Plus, there are several plugins that I’d consider essential that need to be made compatible with the latest release.

  • @qwinter yeah, it was pretty broken when I checked it last around a week ago - it was so bad in fact, that I landed up rolling back to 1.19.7 in my Dev environment.

    Version 2.0 is quite the departure as it uses webpack. I’ve seen on GitHub that 2.01 is in the works which I think it’s going to fix (hopefully) these issues. From my perspective, I will remain on the 1.19.7 train for a while as 2.0 is currently a little too bleeding edge for my liking.

    Plus, there are several plugins that I’d consider essential that need to be made compatible with the latest release.

    wrote on last edited by
    #9

    @phenomlab This is really disappointing. I think I’m jumping off the train of self-hosting with cloudron. Not having control over this is really askng for trouble.
    Because self-hosting is done by people who don’t have a sysadmin on call, and they don’t want to deal with these things (hence cloudron!), dropping a broken version on an app on the user’s lap is a guaranteed pain in the neck for the self-hoster. Imagine this was a live, active forum. Going back to previous version would lose some posts. And the users would be pissed if they lost a big post.

    Yes you can be very systematic with backups. Yes you may be on top of things and act fast. Yes you can read the forums for the apps you self-host. But then you have an extra job, one you don’t want to have. If you just want to run a community, dicking around with versions and configs is not a good use of your time. This is how we got to the situation we are in: everyone is hostage of apps, bigTech, and ‘convenience’. Because the alternative is just freaking terrible. And I thought cloudron would solve this… they are not made of magic I guess. You still have to babysit your sites, read updates on forums for your apps, etc. Not worth it, sorry.

  • @phenomlab This is really disappointing. I think I’m jumping off the train of self-hosting with cloudron. Not having control over this is really askng for trouble.
    Because self-hosting is done by people who don’t have a sysadmin on call, and they don’t want to deal with these things (hence cloudron!), dropping a broken version on an app on the user’s lap is a guaranteed pain in the neck for the self-hoster. Imagine this was a live, active forum. Going back to previous version would lose some posts. And the users would be pissed if they lost a big post.

    Yes you can be very systematic with backups. Yes you may be on top of things and act fast. Yes you can read the forums for the apps you self-host. But then you have an extra job, one you don’t want to have. If you just want to run a community, dicking around with versions and configs is not a good use of your time. This is how we got to the situation we are in: everyone is hostage of apps, bigTech, and ‘convenience’. Because the alternative is just freaking terrible. And I thought cloudron would solve this… they are not made of magic I guess. You still have to babysit your sites, read updates on forums for your apps, etc. Not worth it, sorry.

    wrote on last edited by phenomlab
    #10

    @qwinter I think most of the issues stem from 2.0 to be fair - 1.19.7 is stable with zero issues for me. What issues are you experiencing ?

    I self host with Hetzner, and have no issues at all.

  • @phenomlab This is really disappointing. I think I’m jumping off the train of self-hosting with cloudron. Not having control over this is really askng for trouble.
    Because self-hosting is done by people who don’t have a sysadmin on call, and they don’t want to deal with these things (hence cloudron!), dropping a broken version on an app on the user’s lap is a guaranteed pain in the neck for the self-hoster. Imagine this was a live, active forum. Going back to previous version would lose some posts. And the users would be pissed if they lost a big post.

    Yes you can be very systematic with backups. Yes you may be on top of things and act fast. Yes you can read the forums for the apps you self-host. But then you have an extra job, one you don’t want to have. If you just want to run a community, dicking around with versions and configs is not a good use of your time. This is how we got to the situation we are in: everyone is hostage of apps, bigTech, and ‘convenience’. Because the alternative is just freaking terrible. And I thought cloudron would solve this… they are not made of magic I guess. You still have to babysit your sites, read updates on forums for your apps, etc. Not worth it, sorry.

    wrote on last edited by
    #11

    @qwinter I’m interested in picking this up again as it seems the conversation went stale.

    Any updates from your side ?

  • wrote on last edited by
    #12

    It’s worth adding @qwinter that 2.x is now completely stable.


Related Topics
  • External Links - New Window

    Solved Customisation nodebb links settings
    8
    2 Votes
    8 Posts
    2k Views
    phenomlab
    @Sampo2910 search the forum here for ogproxy which is the client side version of that plugin I wrote. It’s in use here on this forum.
  • CSS code customization for the link preview plugin

    Solved Customisation css nodebb
    6
    2
    3 Votes
    6 Posts
    3k Views
    phenomlab
    @kadir-ay-0 marking as resolved based on https://community.nodebb.org/topic/17109/manual-build-a-night-mode-for-harmony/5 Please do not raise requests in two places - here and the NodeBB forums. All this does is create unnecessary load for both parties.
  • How to style tool tip of nodebb-plugin-user-level

    Solved Customisation user level css
    4
    1
    5 Votes
    4 Posts
    3k Views
    phenomlab
    @DownPW thanks. I forgot about that.
  • nodebb-plugin-custom-pages

    Solved Customisation plugin custom-pages
    5
    2
    3 Votes
    5 Posts
    5k Views
    phenomlab
    @DownPW it’s possible, yes, but you may inadvertently end up targeting other elements using the same class which of course isn’t desired. Can you provide a link in DM for me to review?
  • Plugin reaction Bug

    Solved Customisation plugin nodebb reaction
    15
    1
    0 Votes
    15 Posts
    6k Views
    phenomlab
    @DownPW That was going to be my next suggestion
  • Tenor GIF Plugin

    Solved Customisation plugin
    19
    1
    5 Votes
    19 Posts
    9k Views
    Sampo2910
    @phenomlab Also for me now Upgraded in ACP and all good . Thx.
  • Recent Cards plugin customization

    Solved Customisation nodebb
    21
    1
    13 Votes
    21 Posts
    12k Views
    phenomlab
    @pobojmoks that’s easily done by modifying the code provided here so that it targets background rather than border In essence, the below should work $(document).ready(function() { $(window).on('action:ajaxify.end', function(data) { $('.recent-card-container').each(function(i) { var dataId = $(this).attr("data-cid"); var color = $('[role="presentation"]', this).css("background-color"); console.log("data-cid " + dataId + " is " + color); $('[data-cid="' + dataId + '"] .recent-card').attr("style", "background-color: " + color); }); }); });
  • nodebb-plugin-customize error

    Solved Customisation
    25
    2 Votes
    25 Posts
    17k Views
    RiekMedia
    @phenomlab it work, thanks