Commit 0cb668f1 authored by Eric Windham's avatar Eric Windham

fixes returning html from the save function in the block.js file

parent c4fa6c2a
......@@ -80,10 +80,11 @@
* we're essentially just adding a short code, here is where
* it's save in the editor
*
* Returning raw HTML is deprecated and recommended to use the
* RawHTML component now
* return content wrapped in DIV b/c raw HTML is unsupported
* going forward
*/
return el( 'RawHTML', { content: '[ninja_forms id=\"' + formID + '\"]' });
var returnHTML = '[ninja_forms id=' + parseInt( formID ) + ']';
return el( 'div', null, returnHTML);
}
} );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment