Override the default reply behaviour
-
Does anyone know how to override behaviour from inside nodebb core?
I'm trying to fix quoting in the new Redactor Composer, and it's suffering at the hands of two lines of code inside the core that format it with markdown.
https://github.com/NodeBB/NodeBB/blob/305c54a727edbb861ef67642f8bbc77ecdd2c027/public/src/client/topic/postTools.js#L144
and here
https://github.com/NodeBB/NodeBB/blob/305c54a727edbb861ef67642f8bbc77ecdd2c027/public/src/client/topic/postTools.js#L182I want to update the Redactor Composer to just wrap it in a <blockquote></blockquote> instead, as that's the standard for Redactor WYSIWYG.
Thanks,
Drew
-
I think the proper way to do that is to refactor those lines to call the active composer plugin
composer.blockquoteThis() or something
Default composer will add > and redactor will add <blockquote>
-
@psychobunny That's what I was thinking too. Is this going to happen because of this post, or do you need me to raise a change request somewhere?
-
Yeah I didn't think about that until you brought this up. If you're making a PR then awesome, otherwise feel free to create an issue
-
@psychobunny issues raised:
https://github.com/NodeBB/NodeBB/issues/3468