Froala Editor Glossary
initOnClick
Core Concept
initOnClick is a feature that improves page performance by initializing only the basic code when the page loads, with the rest of the code loaded upon clicking in the editable area. This is particularly beneficial when multiple rich text editors are present on the same page.
Key Features
- Improves page performance
- Loads additional code on user interaction
- Recommended for multiple editors on the same page
Use Cases
- Web applications with multiple text editors
- Performance-sensitive applications
- Dynamic content editing interfaces
Implementation
- Initialize the editor on a specific element
- Use the initOnClick option in the configuration
Best Practices
- Use initOnClick for better loading times
- Combine with other performance optimization techniques
- Test the initialization process across different browsers
π Froala Documentation
Learn more about initOnClick in the official Froala documentation:
