Fix spoiler plugin
Solved
General Discussion
-
Hi!
Images in spoiler dont show up. I would be grateful for help.
GitHub - NicolasSiver/nodebb-plugin-ns-spoiler: Spoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax.
Spoiler. Ability to control visibility of the content in posts. Works better with Markdown syntax. - NicolasSiver/nodebb-plugin-ns-spoiler
GitHub (github.com)
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)
-
I doubt that this worked with 1.5.x. But it might have worked with 1.4.x. There was a breaking change between those minor versions on the client side. The function unloadImages moved from the module
forum/topic/posts
toforum/topic/images
. This plugin basically is now incompatible with the current NodeBB and needs fixing. -
You'll have to ask the author of the plugin. Best is you open an issue on the GitHub repository and hope you'll get an answer: https://github.com/NicolasSiver/nodebb-plugin-ns-spoiler/issues
Copyright © 2024 NodeBB | Contributors