- Getting Started
- Browser Support
- Languages Support
- Shortcuts
- Activation
- Examples
- Customize the Editor
- Use-cases
- Plugins
- APIs
- Development Frameworks
- Server Integrations
- Server SDKs
- Migration Guides
- Changelog
- Tutorials
Modes
Init On Click
Try it yourself:
HTML
<div id="froala-editor">
<p>Init on click improves the page performance by initializing only the basic code when the page is loaded and the rest of the code when clicking in the editable area. It is highly recommended to use the <a href="../docs/options#initOnClick" title="initOnClick option" target="_blank">initOnClick</a> option if you have more rich text editors on the same page.</p>
<p><strong>Click here to initialize the WYSIWYG HTML editor on this text.</strong></p>
</div>
JAVASCRIPT
<script>
new FroalaEditor('div#froala-editor', {
initOnClick: true
})
</script>