j-iFrameEditable
- can edit HTML safely
- height of iframe is automatically counted from the
body - important: content must contain
contenteditableattribute
Configuration:
bind {String}can containbody(default),htmlorcontenteditable
Methods:
component.resize()
Use it with <ui-component name="iframeeditable">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<div>This component can edit HTML code safely:</div>
<ui-component name="iframeeditable" path="customhtml"></ui-component>
<script>
SET('customhtml', '<div contenteditable="true"><div><b>Total.js</b></div><br /><br /><a href="https://www.totaljs.com">www.totaljs.com</a></div>');
</script>