Skip to content

Images

Init On Image

Using the image.min.js plugin it is possible to initialize the WYSIWYG HTML editor only on an imag.

init-on-image

Try it yourself:

Old Clock

Edit in JSFiddle

HTML

<img id="edit" class="fr-fil fr-dib" src="https://raw.githubusercontent.com/froala/wysiwyg-editor/master/editor.jpg" alt="Old Clock" width="300"/>

JAVASCRIPT

<script>
  $(function() {
    $('img#edit').froalaEditor();
  });
</script>
File: 3690