MyBB Community Forums
Add a button in the editor? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Add a button in the editor? (/thread-226126.html)



Add a button in the editor? - blongso - 2020-01-20

Hello @ll,
Is it possible to add the hide function as a button? So if someone wants to hide a certain part in his thread, all he has to do is click the button and the code automatically comes.
Example: if you want to insert an image [img] [/ img]<br /><br />[Image: NJv5P.png]


if yes how can I implement this?
THX in advance for your help!

greets,
blongso


RE: Add a button in the editor? - .m. - 2020-01-20

you can try using My Insert Buttons plugin


RE: Add a button in the editor? - blongso - 2020-01-20

re .m.,
thank you!
When I activate the plugin, the bottom bar disappears completely ..
[Image: kOjPp.png]


RE: Add a button in the editor? - .m. - 2020-01-20

looks like required javascript code is NOT inserted into codebuttons template
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/myinsertbuttons/mibutton.js?ver='.MIB_PLUGIN_VER.'"></script>

however, hide button should be already inserted into the editor for the Thanks system plugin
so above suggested plugin is not really required to add hide button for Thanks system plugin

(need to check related code inThanks system plugin ...)


RE: Add a button in the editor? - blongso - 2020-01-20

re .m.,
I just checked the codebuttons template, the code is not inside.
Is there a solution? I didn't understand that exactly

greets,
blongso