j-iFrameWydaje się
- Możesz bezpiecznie edytować HTML
- Wysokość iframu jest automatycznie obliczana z
body - important: zawartość musi zawierać atrybut
contenteditable
Konfiguracja:
bind {String}może zawieraćbody(default),htmllubcontenteditable
Metody:
component.resize()
Użyj go z <ui-component name="iframeeditable">Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu DEF.fallback (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja MIT.
<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>