J-iFrameEditabel
- Kan redigera HTML säkert
- Iframs höjd räknas automatiskt från
body. - important: Innehållet måste innehålla
contenteditable-attribut
Konfigurera:
bind {String}kan innehållabody(default),htmlellercontenteditable
Metoder:
component.resize()
Använd den med <ui-component name="iframeeditable">När komponenten ännu inte är laddad, jComponent Ladda ner den första gången från adressen i DEF.fallback (en av Componentator Författare: Peter Širka. källa: The Componentator Komponenterna i lager, MIT licens.
<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>