ForgeKomponenty
cs

Komponenty

j-iFrameEditable

jComponent 20 · jcomponent@20 component Příklad načten s jComponent 20
  • HTML lze bezpečně upravovat
  • Výška iframu se automaticky počítá z body.
  • významný: obsah musí obsahovat atribut contenteditable

Konfigurace:

  • bind {String} může obsahovat body (předvolené), html nebo contenteditable

Metody:

  • component.resize()

Použijte ji s <ui-component name="iframeeditable">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.

example.html
<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>