- 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
Modes
Init On Button
It is possible to initialize the WYSIWYG HTML editor only on a button.
Try it yourself:
HTML
<button id="edit" class="btn r-btn highlight text-small">Button</button>
JAVASCRIPT
<script>
new FroalaEditor('button#edit', {
events: {
contentChanged: function () {
console.log ('content changed');
}
}
})
</script>