New Froala Editor v5.0.0 is here – Learn More
Froala Documentation
- Installation Guides
- Browser Support
- Languages Support
- Shortcuts
- Activation
- Examples
- Customize the Editor
- Use-cases
- Plugins
- APIs
- Development Frameworks
- Server Integrations
- Server SDKs
- Migration Guides
- Changelog
- Tutorials
API
Live Code Preview
Try it yourself:
HTML
<div id="froala-editor">
<p>Preview the HTML code of the WYSIWYG HTML editor as you type in the box below.</p>
</div>
<br/>
<pre id="eg-previewer" class="prettyprint linenums:1">
</pre> JAVASCRIPT
<script>
var callback = function () {
var editor = this
$('pre#eg-previewer').text(editor.codeBeautifier.run(editor.html.get()))
$('pre#eg-previewer').removeClass('prettyprinted');
}
new FroalaEditor('div#froala-editor', {
events: {
initialized: callback,
contentChanged: callback
}
})
</script> Whats on this page hide