Tim Forbes
posted this on April 11, 2012 12:12 pm
Soapbox Shortcodes allows for WYSIWYG editor-safe code that can be easily added to any place within Soapbox that uses the WYSIWYG edit and some additional spots that don't. The Shortcode inserts HTML or complex javascript that has been defined for your site when a visitor views the page. This is particularly useful in instances where the more complex code might get stripped out by the WYSIWYG editor.
The editor-safe code could look something like this...
This is my article text. It is very interesting, isn't it?
{safelittlecodesnippet}Some text that I want inserted into the fancy, complex code{/safelittlecodesnippet}
And I have yet more to add to this article...
...but translate into any number of things once Soapbox Shortcodes runs it on your site: a Facebook Like Box, a Flickr slideshow widget, an embedded video, specialized text styling, or a variety of other options that require javascript or advanced HTML.
Soapbox Shortcodes can be inserted in any place in Soapbox that uses the WYSIWYG editor. This includes:
Two places which do not use the WYSIWYG editor but can accept Soapbox Shortcodes are:
To review the Soapbox Shortcodes available on your site, go to http://www.[yourdomain]/pages and click on Soapbox Shortcodes. This hidden styling page will show you how the various Shortcodes will render on your site. [Note - this has to be activated on each individual site. If it's not working for you please open a ticket to request it and we can have it set up for you.]
To use a Soapbox Shortcode in a WYSIWYG editor, you can either type the code directly into the editor or:
If you would like us to add a Soapbox Shortcode to your site for a specific purpose, contact us with details!