Feature request: Options
-
Hi!
Thanks for the great plugin! May I suggest two more options?
First I’d like to disable the button text. The button is too huge if you enabled a lot of other editor buttons via TinyMCE Advanced. For me it’s enough to have the icon on the button.
Second: I’d like have an option to skip the configuration window on click and use a customized shortcode instead. In my case, I use SHCE inside a forum (Asgaros forum) giving users the possibility to collapse some parts (it’s a little bit weird: we’re (mis-) using the forum as an internal joint archive for research documents). This works pretty good. But I want to have a standard design and easy access for my users.I fixed both items by changing the file bg-show-hide-mce-plugin.js, deleting all the window stuff to this:
editor.addButton('bg_show_hide_tc_button', { text: '', // kills the button text icon: 'icon dashicons-sort', title: 'Insert Collapse-Expand shortcode', onclick: function() { var contents = editor.selection.getContent(); editor.insertContent('<span style="color:red;font-size:11px;">[bg_collapse view="link" color="#228b22" icon="zoom" expand_text="Zeigen" collapse_text="Verbergen"]</span><blockquote>' + contents +'</blockquote><span style="color:red;font-size:11px;">[/bg_collapse]</span>'); } });
Which works pretty good, now it’s exactly what I want – Except the need to rewrite it on every update. So I would really appreciate having these options in the future.
Thanks!
Ruediger
- The topic ‘Feature request: Options’ is closed to new replies.