File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 </ style >
3434 </ head >
3535 < body >
36- < script
37- src ="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.6/ace.js "
38- > </ script >
39-
4036 < div class ="wrapper ">
4137 < div class ="text ">
4238 < h1 > Help Mr Hankey</ h1 >
@@ -272,6 +268,11 @@ <h1>Help Mr Hankey</h1>
272268 data-fiddlestick-type ="render "
273269 > </ div >
274270
275- < script src ="../fiddlestick-ace.js "> </ script >
271+ < script
272+ src ="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.6/ace.js "
273+ > </ script >
274+ < script
275+ src ="../fiddlestick-ace.js "
276+ > </ script >
276277 </ body >
277278</ html >
Original file line number Diff line number Diff line change 11( function ( ) {
22
3- // TODO: test for ace editor dependency.
3+ // Test for ace editor dependency.
4+ if ( typeof ace === 'undefined' ) {
5+ console . error ( 'You have to load Ace editor (https://ace.c9.io) before FiddleStick or use fiddlestick.js instead of fiddlestick-ace.js.' ) ;
6+ return ;
7+ }
48
59 function init ( ) {
610 // Init fiddles mapping.
You can’t perform that action at this time.
0 commit comments