164 posts Designer & Developer
  • Trendsetter
  • Elite Author
  • 6 Years of Membership
  • Author Level 8
+6 more
Webbu
says

Thanks a lot for this tutorial Webbu

If anyone need shortcode to be inserted directly into the editor without popup can use this code inside plugin.js:

{text: 'Subtitle',onclick:function(){
    editor.execCommand("mceInsertContent", false, '[subtitle]Put Your Tittle Here.[/subtitle]')
}},

Did anybody who tried this fix experienced this bug – when switching between the Visual and Text editor a couple of times in TinyMCE, both toolbars become visible and I can’t access the Text editor, as if the tab button is dead. When I disable the Zilla plugin it goes back to normal…

Any ideas what might be causing this?

I tried the Zilla Shortcodes plugin fix on a fresh install and with Twentyfourteen theme…

Other than this, everything works as it should…
I’m getting the same bug switching between visual and the text editor
The problem is below code:
  tinymce.init({
        selector: ".wp-editor-area",
        toolbar: "shortcodes",
        setup: function(editor) {

            }
)};

check this new plugin.js https://github.com/webbudesign/ZillaShortcodeWP3.9/blob/master/plugin.js

Hope this will solve the problem.

74 posts
  • 5 Years of Membership
  • Author Level 6
  • Collector Level 2
  • Exclusive Author
+1 more
jezh
says

I cannot thank you enough :)

Works great!

217 posts responsive
  • Elite Author
  • Trendsetter
  • Exclusive Author
  • Featured Author
+7 more
ZERGE
says

Thanks for your help, Webbu ;)

408 posts
  • Author Level 6
  • Exclusive Author
  • Most Wanted Winner
  • Beta Tester
+2 more
kaaz
says

Thanks Webbu :)

1190 posts Yes We Can
  • 2 Years of Membership
  • Affiliate Level 4
  • Author Level 9
  • Collector Level 1
+7 more
CRIK0VA
says

Thank you very much, Webbu :) Good article.

164 posts Designer & Developer
  • Trendsetter
  • Elite Author
  • 6 Years of Membership
  • Author Level 8
+6 more
Webbu
says

Happy to help you guys… :)

164 posts
  • Collector Level 1
  • Exclusive Author
  • Romania
  • 3 Years of Membership
bucur
says

very nice of you to help, thanks Webbu.

1 post
  • 7 Years of Membership
  • Collector Level 2
jonbolden
says

This was very helpful, thank you!

I published the full list of shortcode types with the correct identifiers in tinymce/plugin.js

                {text: 'Alerts',onclick:function(){
                        editor.execCommand("zillaPopup", false, {title: 'Alerts',identifier: 'alert'})
                    }},
                    {text: 'Buttons',onclick:function(){
                        editor.execCommand("zillaPopup", false, {title: 'Buttons',identifier: 'button'})
                    }},
                    {text: 'Columns',onclick:function(){
                        editor.execCommand("zillaPopup", false, {title: 'Columns',identifier: 'columns'})
                    }},
                    {text: 'Tabs',onclick:function(){
                        editor.execCommand("zillaPopup", false, {title: 'Tabs',identifier: 'tabs'})
                    }},
                    {text: 'Toggle',onclick:function(){
                        editor.execCommand("zillaPopup", false, {title: 'Toggle',identifier: 'toggle'})

https://github.com/jonbolden/zilla-shortcodes-wordpess-3.9-fix/blob/master/tinymce/plugin.js
2 posts
  • 3 Years of Membership
  • Collector Level 1
ixtract
says

Hi there,

thanks a lot! Great help to adjust it. Is it somehow possible to change the type of the button (Splitbutton) to a button containing the titel of the Button as text a width of e.g. 50px?

And is it difficult to change from Zilla shortcodes 1.0 to 2.0 or do you know any tutorial for that, too?

Thanxs a lot for your kind help.

2 posts
  • 3 Years of Membership
  • Collector Level 1
ixtract
says

Hi there,

thanks a lot! Great help to adjust it. Is it somehow possible to change the type of the button (Splitbutton) to a button containing the titel of the Button as text a width of e.g. 50px?

And is it difficult to change from Zilla shortcodes 1.0 to 2.0 or do you know any tutorial for that, too?

Thanxs a lot for your kind help.

by
by
by
by
by
by