tinymce toolbar disappears
-
When this plugin is enabled, the tinymce toolbar disappears.
-
With the “secondary mode” enabled, the toolbar appears and I can click on the pre and code buttons the plugin provides.
However, pressing the “insert” button in the SHTB windows don’t add the text to the editing window. There were a few errors in the javascript console:
Failed to load resource: /wp-content/plugins/syntaxhighlighter-tinymce-button/sh-tinymce-button-box/tinymce.js?ver=0.5.6 the server responded with a status of 404 (Not Found) Uncaught ReferenceError: insertSHTBADVCODEBOXcode is not defined /content/plugins/syntaxhighlighter-tinymce-button/sh-tinymce-button-box/window.php?ver=3393a2-sh3.1.3:84 Failed to load resource: /wp-content/plugins/syntaxhighlighter-tinymce-button/sh-tinymce-button-box/tinymce.js?ver=0.5.6 the server responded with a status of 404 (Not Found)
Hi, computerslayer1 san
Sorry, I have forgotten about some lines that need to be fixed.
Now. I have released ver. 0.5.7.
Please activate “Secondary Mode” before try it.Looks like it’s working now ??
What is this secondary mode, anyway?
Could you increase the size of the window so the insert/cancel buttons can be clicked without needing to scroll the window?
Hi, computerslayer1 san
What is this secondary mode, anyway?
In ver.0.5.7 or 0.5.6, “secondary mode” does not carry much weight.
The difference is just the way to get plugin directory.
In future version, “secondary mode” is not necessary option.
I considered the possible effect on other users and tried to fix in “secondary mode”.Could you increase the size of the window so the insert/cancel buttons can be clicked without needing to scroll the window?
When you activate “Load All Brushes” on the “SyntaxHighlighter” setting panel, the warning message will disappear and the vertical scrollbar may disappear.
You can also edit “width” and “height” values to change window size.
YOUR PLUGIN DIRECTORY/syntaxhighlighter-tinymce-button/sh-tinymce-button-box/editor_plugin.js
ed.addCommand('shtb_adv_codebox_cmd', function() { ed.windowManager.open({ file : url + '/window.php', width : 360, height : 430, inline : 1 }, { plugin_url : url // Plugin absolute URL }); });
YOUR PLUGIN DIRECTORY/syntaxhighlighter-tinymce-button/sh-tinymce-button-ins/editor_plugin.js
ed.addCommand('shtb_adv_insert_cmd', function() { ed.windowManager.open({ file : url + '/window.php', width : 360, height : 190, inline : 1 }, { plugin_url : url // Plugin absolute URL }); });
Now there isn’t an easier way to change window size.
But this issue is important for me.
I will add the option to change window size in future version.If you and other users report “width” and “height” that you like, that will help my development.
Thank you.
Hi, computerslayer1 san
Now. I have released ver.0.6.
This version has the option to change pop-up window size.
And no need to activate “secondary mode”.The syntaxhighlighter isn’t actually used when this plugin generates the code in the editor. The text is just surrounded by pre tags, which the syntaxhighlighter plugin doesn’t use for formatting, apparently.
Hi, computerslayer1 san
Are you using with “SyntaxHighlighter Evolved”?
When using with “SyntaxHighlighter Evolved”, “Load All Brushes” option must be enabled on the “SyntaxHighlighter” setting panel.
And
This plugin is designed to work with a plugin based on Alex Gorbatchev’s SyntaxHighlighter Ver, 2.0 or higher.
You can not use this plugin with some ‘SyntaxHighlighter’-based plugins which do not support
<pre>
tag.
- The topic ‘tinymce toolbar disappears’ is closed to new replies.