Getting Started
Integrating Bloom Editor into your project is simple. Follow these steps to get started:
1. Include the Script
Add the Bloom Editor script to your HTML file:
<!-- Include Bloom Editor from CDN -->
<script src="https://bloomeditor.com/editor/API_KEY/editor.js"></script>
<!-- Optional: Include Boxicons for icons -->
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
2. Create HTML Element
Create a textarea or div where you want the editor:
<!-- Using textarea -->
<textarea id="myEditor">
<h1>Welcome to Bloom Editor</h1>
<p>Your initial content here...</p>
</textarea>
<!-- Or using div -->
<div id="myEditor">
<h1>Welcome to Bloom Editor</h1>
<p>Your initial content here...</p>
</div>
3. Initialize the Editor
Initialize Bloom Editor with your configuration:
// Initialize with basic configuration
const editor = BloomEditor.init({
selector: '#myEditor',
toolbar: ['bold', 'italic', 'heading', 'image', 'table', 'code'],
height: '500px',
theme: 'light'
});