Shortcake (Shorcode UI) Support for Gravity Forms

I’ve been using a plugin for WordPress lately called Shortcake (Shortcode UI) which basically provides users a visual interface for inserting and changing shortcodes. I really like it and it makes inserting custom blocks of content beautiful in the WordPress editor.

I was a little bummed to find Gravity Forms doesn’t already support  Shortcake, so I added it. Be sure to read the caveat below.

https://gist.github.com/solepixel/8514cb409755be6cdbcf6064b74b3ce3

For the most part this works well, but I noticed one instance where I had to modify the editor stylesheet with this line:

.gform_wrapper { display:block !important; }

That’s it! Haven’t really tested this a ton, but works great on the current site I’m building.

Write a Comment