MyBB Community Forums

Full Version: Where is parser for visual editor?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
 I am using "parse_message_end" hook to add some functionality to posts display.
Where I can add code to visual editor in the same way?

For example, I want to change "<123>" to something special from database, I can use "parse_message_end" for this in post, but what about visual editor? Where are its guts?
Well, from PHP side you can use this hook: https://github.com/mybb/mybb/blob/featur....php#L2867 But the editor = mainly JS, so you will most likely need to create a JS file with SCEditor extensions like these: https://github.com/mybb/mybb/blob/featur...tor.js#L21
Thanks, I will look into it.

All I need is to search and replace with my own function.