<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									TinyMCE plugins when posting a topic - How-to and Troubleshooting				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 09 Mar 2026 05:31:04 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-34993</link>
                        <pubDate>Wed, 08 Jan 2020 13:32:19 +0000</pubDate>
                        <description><![CDATA[@sofy
Ahh, that makes more sense... having a lower priority (a higher number) means that it will run after your code rather than before... which is what was previously causing your code to ...]]></description>
                        <content:encoded><![CDATA[<p>@sofy</p>
<p>Ahh, that makes more sense... having a lower priority (a higher number) means that it will run after your code rather than before... which is what was previously causing your code to basically overwrite what I had defined.&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks 😀&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>hshah</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-34993</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-34992</link>
                        <pubDate>Wed, 08 Jan 2020 13:10:40 +0000</pubDate>
                        <description><![CDATA[@hshah,The logic you&#039;re using is correct. You&#039;ve found the right way. However, you&#039;ve done some customizations in the class-template.php file, that will be lost after the wpForo update. In c...]]></description>
                        <content:encoded><![CDATA[<p>@hshah,</p><p>The logic you're using is correct. You've found the right way. </p><p>However, you've done some customizations in the<span style="color: #800080"><em><strong> class-template.php</strong></em></span> file, that will be lost after the wpForo update. In case, if you don't want to make the same changes each time after the plugin update, just do it via the hook.</p><p>So the correct way (without modifying any wpForo core files) to get it resolved is calling the "<span style="color: #339966"><strong>mce_external_plugins</strong></span>" filter and use the priority greater than <strong>15 </strong>(for example we use 16 in the example below <strong><span style="color: #ff0000">16</span></strong>).</p><p>For adding the buttons in the TinyMCE toolbar you've written the correct way in the post above (using the "<span style="color: #339966"><strong>wpforo_editor_settings</strong></span>" filter). </p><p>Finally, to add custom TinyMCE plugin to wpForo editor you just need to write the small functions as shown below</p><pre>//to add custum plugin <br />add_filter( 'mce_external_plugins', function ( $plugin_array ) { <br />        $plugin_array = plugins_url() . '/crayon-syntax-highlighter/util/tag-editor/crayon_tinymce.js'; <br />        return $plugin_array; <br />} , <strong><span style="color: #ff0000">16</span> </strong>);<br /><br /><br />//to add the buttons in the TinyMCE toolbar<br />add_filter( 'wpforo_editor_settings', function( $settings ){<br />	$settings .= ',<strong><span style="color: #ff0000">crayon_tinymce</span></strong>';<br />	return $settings;<br />} );</pre><p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-34992</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-34978</link>
                        <pubDate>Wed, 08 Jan 2020 09:16:57 +0000</pubDate>
                        <description><![CDATA[@robert / @Sofy
&nbsp;
Still waiting on an explanation to this... the lack of response just makes it seem more deceitful 🙄&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>@robert / @Sofy</p>
<p>&nbsp;</p>
<p>Still waiting on an explanation to this... the lack of response just makes it seem more deceitful 🙄&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>hshah</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-34978</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32696</link>
                        <pubDate>Mon, 21 Oct 2019 01:33:50 +0000</pubDate>
                        <description><![CDATA[@captain_planet
So I managed to add tinymce plugins by adding them to the wpforo plugins folder, and editing the class-template.php file... that was really easy.&nbsp;&nbsp;
Trying to do t...]]></description>
                        <content:encoded><![CDATA[<p><span style="color: #ff0000;font-size: 14pt">@captain_planet</span></p>
<p>So I managed to add tinymce plugins by adding them to the wpforo plugins folder, and editing the class-template.php file... that was really easy.&nbsp;&nbsp;</p>
<p>Trying to do that via the functions file and I am struggling for some reason... have literally spent hours trying to work out why what you had don't was not working and I believe I have worked it out.</p>
<p>The filter does not work because the array is being reinitialised, effectively making the filter absolutely pointless.&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<pre>add_filter( 'mce_external_plugins', 'custom_mce_plugins');<br /><br />function custom_mce_plugins( $plugin_array ) {<br />   $plugin_array = get_stylesheet_directory_uri() . '/tinymce-plugins/image/plugin.js';<br />   return $plugin_array;<br />}; </pre>
<p>The above is my fairly basic filter to load the plugin - basically the same as yours.<br /><br /></p>
I added some logging in wpForo's class-template.php file to output the return $plugin_array for the add_mce_external_plugins function - the below is the output and clearly out filter has not worked:
<pre class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">Array<br />(<br />&nbsp;    =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-pre.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-link.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-spoiler.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-code.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-emoji.js<br />)</pre>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
Below is a screenshot of the function, in which you can see the logging I added.&nbsp; You will also notice that the function starts by reinitialising the array:
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post."><img src="https://i.imgur.com/3EmK4mx.png" /></div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
If I comment out just that one line and refresh the page, the log output now shows:
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<pre class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">Array<br />(<br />&nbsp;    =&gt; https://staging.abcde.xyz/wp-content/themes/airi-child/tinymce-plugins/image/plugin.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-pre.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-link.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-spoiler.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-code.js<br />     =&gt; https://staging.abcde.xyz/wp-content/plugins/wpforo/wpf-assets/js/tinymce-emoji.js<br />)</pre>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
I had already implemented this filter to add the Image button to the toolbar (as well as enable Paste as Text by default), so when I refreshed the page, I had an amazing Image button.&nbsp; I had just appended it to the end of the string, so it actually pushed the Full Screen button to the left next to the others, took its place on the far right - only a minor thing and can be sorted out later.
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<pre class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">add_filter( 'wpforo_editor_settings', function( $settings ){<br />	$settings .= ',image';<br />	$settings = 'true';<br />	return $settings;<br />} );</pre>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
I have already read elsewhere that a few additional lines of code are needed to display the File Browser button next to the Source field, and that is something I will probably look into next.&nbsp;&nbsp;
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post."><img src="https://i.imgur.com/58SKNp0.png" /></div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post."><img src="https://i.imgur.com/JnhZYTj.png" /></div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">&nbsp;</div>
<span style="font-size: 14pt;color: #ff0000">@robert / @Sofy</span><br /><br /><br /><br /><br />So when this was said:<br /><br />
<blockquote>
<div class="wpf-author-nicename" title="You can mention a person using @nicename in post content to send that person an email message. When you post a topic or reply, forum sends an email message to the user letting them know that they have been mentioned on the post.">restriction is made by wpForo developers</div>
</blockquote>
<br /><br />Is this what you meant?&nbsp; The functions for the other filters you have do not reinitialise the arrays, so any particular reason why this does?&nbsp; If for some reason you need to reset it, then your filter is the wrong way around, because in that scenario you would&nbsp;]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>hshah</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32696</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32124</link>
                        <pubDate>Tue, 01 Oct 2019 14:03:41 +0000</pubDate>
                        <description><![CDATA[@captain_planet Thanks for letting me know 😀@sofy Can you please advise how to actually add the plugins using the method you mentioned, because based on what @captain_planet said, it doesn&#039;t...]]></description>
                        <content:encoded><![CDATA[<p>@captain_planet Thanks for letting me know 😀</p><p>@sofy Can you please advise how to actually add the plugins using the method you mentioned, because based on what @captain_planet said, it doesn't actually work. </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>hshah</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32124</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32123</link>
                        <pubDate>Tue, 01 Oct 2019 13:49:58 +0000</pubDate>
                        <description><![CDATA[@hshah
I didn&#039;t.&nbsp; Unfortunately I ended up using a different forum plugin and writing my own Wordpress syntax highlighter plugin that uses prims.js.]]></description>
                        <content:encoded><![CDATA[<p>@hshah</p>
<p>I didn't.&nbsp; Unfortunately I ended up using a different forum plugin and writing my own Wordpress syntax highlighter plugin that uses prims.js.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>captain_planet</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32123</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32098</link>
                        <pubDate>Tue, 01 Oct 2019 03:01:12 +0000</pubDate>
                        <description><![CDATA[@captain_planet
Did you manage to work this out in the end?&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>@captain_planet</p>
<p>Did you manage to work this out in the end?&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>hshah</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-32098</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-27742</link>
                        <pubDate>Mon, 10 Jun 2019 21:33:26 +0000</pubDate>
                        <description><![CDATA[Hi @sofy.&nbsp; Is there an example of how to add an additional plugin?&nbsp; Thanks.]]></description>
                        <content:encoded><![CDATA[Hi @sofy.&nbsp; Is there an example of how to add an additional plugin?&nbsp; Thanks.]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>captain_planet</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-27742</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-27659</link>
                        <pubDate>Sat, 08 Jun 2019 21:35:15 +0000</pubDate>
                        <description><![CDATA[Hi @sofy.
The filters don&#039;t seem to work on the WPForo TinyMCE instance?&nbsp; They work in the&nbsp; WordPress instantiated TinyMCE though?&nbsp; I&#039;ve put these in my functions.php to test...]]></description>
                        <content:encoded><![CDATA[<p>Hi @sofy.</p>
The filters don't seem to work on the WPForo TinyMCE instance?&nbsp; They work in the&nbsp; WordPress instantiated TinyMCE though?&nbsp; I've put these in my functions.php to test...
<pre>function register_crayon_tinymce( $plugin_array ) {
   $plugin_array = plugins_url() . '/crayon-syntax-highlighter/util/tag-editor/crayon_tinymce.js';
   return $plugin_array;
}
add_filter( 'mce_external_plugins', 'register_crayon_tinymce' );

function configure_tinymce_buttons($buttons) {
	return array('formatselect', 'bold', 'italic', 'subscript', 'crayon_tinymce');
}
add_filter("mce_buttons", "configure_tinymce_buttons", 0);
</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>captain_planet</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-27659</guid>
                    </item>
				                    <item>
                        <title>RE: TinyMCE plugins when posting a topic</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-27646</link>
                        <pubDate>Sat, 08 Jun 2019 13:34:25 +0000</pubDate>
                        <description><![CDATA[Hi @captain_planet,This restriction is made by wpForo developers so as to not allow the additional plugins, as it may cause the styling issue, etc.If you&#039;re a developer you can simply add th...]]></description>
                        <content:encoded><![CDATA[<p>Hi @captain_planet,</p><p>This restriction is made by wpForo developers so as to not allow the additional plugins, as it may cause the styling issue, etc.</p><p>If you're a developer you can simply add the TinyMCE additional plugins using the TinyMCE filters. </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/tinymce-plugins-when-posting-a-topic/#post-27646</guid>
                    </item>
							        </channel>
        </rss>
		