wp-shortcake / shortcake

Shortcake makes using WordPress shortcodes a piece of cake.
GNU General Public License v2.0
664 stars 142 forks source link

Support more options than dashicons for "images" #121

Open bobbingwide opened 9 years ago

bobbingwide commented 9 years ago

With hundreds of shortcodes possible in one WordPress installation, there may not be enough dashicons to choose from for the Insert Post Element List display.

It would be nice if the dashicons solution could be extended to support genericons and other icon fonts.

Note: To display an actual image you just need to return an image tag.

<img class="" src="http://qw/wp-content/plugins/oik/images/bbboing-icon-256x256.jpg" title="bbboing" alt="bbboing">

To display one line help for the shortcode, just wrap the text in a paragraph tag. <p>one line help for shortcode</p>

otherwise, you get very large text.

Currently it seems that the HTML is escaped. So it's not possible to use © to display the Copyright symbol, for example.

danielbachhuber commented 9 years ago

I agree. I think our argument definition for shortcode UI needs revisiting.

mattheu commented 9 years ago

I think we should support a custom image, or dashicons. This should be pretty easy.

cliffordp commented 9 years ago

:+1: