nicolassiver / nodebb-plugin-ns-spoiler Goto Github PK
View Code? Open in Web Editor NEWSpoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax.
License: MIT License
Spoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax.
License: MIT License
As per the title.
Not sure if it's just isolated to me, mind looking into it, please?
Hey, it seems that plugin is not compatible with newest nodebb. I'm not sure if this can be fixed quickly though.
See photo: https://i.imgur.com/lgXGjl2.png
This has happened twice now. As you can see in the second spoiler, instead of the attached images showing, the text repeats itself. The images in the 3rd spoiler aren't the ones actually inserted; this is probably due to spoiler 2 bugging out.
You can see more here: https://saesrpg.uk/post/159291
Using multiple spoilers in a post on the persona theme breaks stuff. Edit buttons and other stuff not working anymore.
Hi i install plugin at 1.12.2 and not work when i press button :(
https://github.com/NicolasSiver/nodebb-plugin-ns-spoiler/blob/master/plugin/controller.js
line 17-18
// Trigger parsing process, it will invoke `Controller.parsePost` through hooks
async.apply(nodebb.posts.parsePost),
this would not trigger parsing process when global.env === 'production'
, because cache was used in https://github.com/NodeBB/NodeBB/blob/45e412ed7c0a876da177a491c1f03f4623349936/src/posts/parse.js line18-21
if (postData.pid && cache.has(String(postData.pid))) {
postData.content = cache.get(String(postData.pid));
return callback(null, postData);
}
so you would never get the spoiler content.
If spoiler is used with lists, without additional space, it creates broken layout.
I can't see the plugin listed in the ACP. So i would like to know if its compatible with 0.9.4 version?
We have discovered that more complex posts with multiple lists and spoilers can have a race condition. Where spoiler will move content around from one list under a spoiler to another list.
Example content is mentioned here: #13 (comment)
Hi!
Images in spoiler dont show up. I would be grateful for help.
Nodebb version: v1.8.2
Link to Nodebb community topic: https://community.nodebb.org/topic/12246/fix-spoiler-plugin
Error in console:
spoiler.js:57 Uncaught TypeError: e.unloadImages is not a function
at i.<anonymous> (spoiler.js:57)
at i.onack (socket.io.js:2)
at i.onpacket (socket.io.js:2)
at i.<anonymous> (socket.io.js:2)
at i.emit (socket.io.js:1)
at i.ondecoded (socket.io.js:1)
at a.<anonymous> (socket.io.js:2)
at a.i.emit (socket.io.js:1)
at a.add (socket.io.js:1)
at i.ondata (socket.io.js:1)
Could you add a screenshot so we know what it looks like before installing?
It would be nice. :P
Unfortunately, this plugin doesn't work with NodeBB v1.12.0.
The only error that's given:
2019-03-25T19:04:32.319Z [4567/11403] - �[33mwarn�[39m: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
�[33m * �[39mnodebb-plugin-ns-spoiler
I tried to use lists with spoilers and that broke things.
:::
1. Item
2. Item
:::
Everything between the spoiler tags being hidden
List gets displayed, button below.
Hi there,
I am running a NodeBB on 1.13.3. When installing your plugin the plugin finder only gives me version 4.1.0, which does not work. I assume the latest doesn't show up due to package.json compatibility being ~1.12.0
(and that older version maybe didn't have the correct compatibility settings).
If this plugin is compatible with 1.13.x and/or 1.14.x I'd love to see an update in the package.json and a new npm release ❤️
Thanks a lot in advance.
I use [email protected] with NodeBB 1.15.5.
Generally everything works good. But once I add some text with double quotes, a spoiler located after such text stops to open.
Examples of NodeBB post for which spoiler doesn't open:
Text "text" text
:::
something
:::
Text "text
:::
something
:::
Example of NodeBB post for which spoiler works well:
Text text
:::
something
:::
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.