Allows to easily embed Fiddles using a small shortcode.
| Author: | Willington Vega (profile at wordpress.org) |
| WordPress version required: | 3.4.0 |
| WordPress version tested: | 6.6.2 |
| Plugin version: | 1.1.3 |
| Added to WordPress repository: | 16-07-2011 |
| Last updated: | 05-11-2024 |
| Rating, %: | 100 |
| Rated by: | 2 |
| Plugin URI: | https://wvega.com/492/jsfiddle-shortcode/ |
| Total downloads: | 4 385 |
| Active installs: | 70+ |
![]() Click to start download |
|
Allows to easily embed Fiddles using a small shortcode.
Usage:
[jsfiddle url="https://jsfiddle.net/wvega/UupFu/" height="300px" include="result,html,js,css" font-color="39464E" menu-background-color="FFFFFF" code-background-color="f3f5f6" accent-color="1C90F3"]
- All attributes are optional.
urlis the URL of the fiddle you want to embed, with or without trailing slash.includecan be any combination ofresult, html, js and css, separated by commas; the tabs in the embedded fiddle will follow the order specified with theincludeattribute.font-coloris the color used for the name of the tabs.menu-background-coloris the color used for the background of the tabs.code-background-coloris the color used for the background of the area where the code and results are shown.accent-coloris the color of the indicator shown below the active tab.
Result:
<iframe style="width: 100%; height: 300px" src="https://jsfiddle.net/wvega/UupFu/embedded/result,html,js,css/?fontColor=39464E&menuColor=FFFFFF&bodyColor=f3f5f6&accentColor=1C90F3"></iframe>
ChangeLog
