Bulleted lists : can I get rid of them ?

General Discussion
  • Hello,
    Here's a problem I've encountered on my forum : if people post a list and that list is used with another feature like if it's in a spoiler or if it's centered, it creates a bug that makes the topic crash (you can't reply anymore). The only solution is to delete the post. 😞
    I understand that it probably comes from a conflict between lists and the plugins I've installed in the redactor (spoiler, align, center etc).
    But I wonder : has anyone encountered the same issue ?
    And most importantly : is there a way to simply remove the list/bullets option ? (so that when you type a dash it doesn't turn into a bulleted list)

    Thanks in advance for your help !

  • It sounds like you're using both redactor and markdown -- I don't think those two plugins are meant to be used together?

  • @julian Thank you for your answer, and yes, that could be where the problem comes from.
    I have these plugins on : default composer, alignment, markdown, simple spoiler.

    PS. But I don't have the "redactor plugin" if by that you mean a wysiwyg editor.

Suggested Topics

  • 1 Votes
    1 Posts

    Hey all,
    I had never used Mongoose before but I know it is used for schema and validation. I was wondering though if anyone knew off chance if it could be added to NodeBB's database without it interfering with how it currently operates? I came across this backend administrative application called ForstAdmin and I was thinking about trying to see if I could add it into my current install. The application itself is made to integrate into an application you already have up and running, but that is under the assumption you are already have Mongoose and are using Express. I might spin up another board just to give it a go and see what happens, lol.

    Thanks all,

  • 0 Votes
    2 Posts

    It only returns a subset of user data https://github.com/NodeBB/NodeBB/blob/master/src/posts/user.js#L24-L28

    If you want to add more you can do so in a plugin, using the hook filter:posts.modifyUserInfo

  • 0 Votes
    2 Posts

    Seams to work πŸ™‚

  • 0 Votes
    3 Posts

    @BDHarrington7 thanks for the link. I'll check out that one, looks a good read.

  • 0 Votes
    10 Posts

    if you're trying to embed nodebb on another site (i.e., the nodebb instance domain ISN'T your website's domain), you'll have to contend with CSP headers. just a heads up.

    if you have full control of the server on which your nodebb instance is hosted, you could set up a simple reverse proxy with nginx, point it to whatever port nodebb is listening on, and set the headers to something lax that way. config below.

    server { listen localhost:4000 ssl; server_name localhost; ssl_certificate /etc/nginx/ssl/localhost.crt; ssl_certificate_key /etc/nginx/ssl/localhost.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers 'AES128+EECDH:AES128+EDH'; ssl_prefer_server_ciphers on; location /forum { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; client_max_body_size 100M; proxy_pass; proxy_redirect off; proxy_intercept_errors on; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_hide_header content-security-policy; proxy_hide_header x-frame-options; add_header content-security-policy "default-src * 'unsafe-eval' 'unsafe-inline' 'self' 'inline' 'http://*.*'"; } }

    you can append whatever domains you'd like to the 3rd to last line (the one that starts with add_header ...), though you shouldn't need to, since the * should whitelist all origins.

    you might ask, β€œwhat legitimate use would there be for this?!?”
    in my particular case, it's nice for local development β€” where your nodebb instance is already running elsewhere but you want to embed it in the site you're developing on your PC.