Yet another fully featured WYSIWIG HTML editor... by ColeNikol
A modern, feature-rich WYSIWYG HTML online editor that creates complete, standalone HTML documents. Built with Font Awesome, Tailwind CSS and vanilla JavaScript for maximum compatibility and performance.
- Text Formatting: Bold, italic, underline, strikethrough
- Headings: H1 through H6 with proper semantic markup
- Lists: Ordered and unordered lists
- Alignment: Left, center, right, and justify alignment
- Colors: Text color and background color pickers
- Blockquotes: Styled quote blocks
- Links: Insert links with custom text, new tab option, and rel attributes
- Images: Upload images or use external URLs with alt text and dimensions
- Tables: Create tables with customizable rows, columns, headers, and borders
- Code Blocks: Insert syntax-highlighted code with language selection
- Save HTML: Generate standalone HTML documents with embedded CSS saved on server
- Download: Download generated HTML file
- Open Files: Load previously saved documents from server
- Preview: Preview documents in a new browser tab
- `common keyboard shortcuts implemented for use
- Code Snippets Manager: Add, edit, delete, filter, and copy code snippets for reuse. Snippets are stored in
assets/snippett.json
and can be managed from the toolbar or the admin panel. - Admin Panel: Access
assets/admin.php
(password:123
) to manage all code snippets and uploaded files. Add, edit, or delete snippets, view and delete uploaded files, delete by type, or empty the uploads folder (exceptindex.php
). - Improved Code Block Insertion: Code blocks are always inserted at the caret position in the editor, never at the top. Each new code block is a separate block, not nested inside previous ones.
- Dark Mode Enhancements: All modal dialogs, buttons, and snippet lists have improved contrast and appearance in dark mode for better accessibility.
- Uploads Management: The admin panel allows you to preview, delete, or bulk-manage uploaded files in
assets/uploads
.
- Download all files to your web server
- Ensure PHP is enabled (for file operations and image uploads)
- Set permissions for the
assets/uploads
directory (755 or 777) - Open
index.php
in your web browser
editor/
├── index.php # Main editor interface
├── editor.js # JavaScript functionality
├── editor.css # Custom styles
├── save.php # File saving and image upload
├── open.php # File loading
├── assets/
admin.php
│ └── uploads/ # Uploaded images
└── README.md # This file
- Start typing in the main editor area
- Use the toolbar to format your text
- Select text and apply formatting
- Use color pickers to change text and background colors
- Click the Snippets tab in the toolbar.
- Add new snippets, filter or sort them, and click the copy icon to copy a snippet to your clipboard for pasting anywhere in the editor.
- Snippets are saved in
assets/snippett.json
and can be managed from the admin panel as well.
- Go to
assets/admin.php
and log in with password123
. - Manage all code snippets and uploaded files from a single interface.
- You can add, edit, or delete snippets, view and delete uploaded files, delete by type, or empty the uploads folder (except
index.php
).
- Click the link button (🔗)
- Enter URL and optional text
- Choose to open in new tab
- Add rel attributes if needed
- Click the image button
- Upload an image or enter URL
- Add alt text for accessibility
- Set custom dimensions if needed
- Click the table button
- Choose number of rows and columns
- Option to include header row
- Choose border styling
- Click the code button
- Select programming language
- Paste or type your code
- Code will be syntax-highlighted
- Click "Save" or use
Ctrl/Cmd + S
- Choose filename and title
- Select "Complete HTML document" for standalone files
- Files are saved with embedded CSS styling
- Click "Open" or use
Ctrl/Cmd + O
- Select from list of saved files
- Files load with proper formatting preserved
- Click "Preview" to see document in new tab
- Shows exactly how the saved HTML will look
- No need to save first
- Click "HTML" button to switch to code view
- Edit raw HTML directly
- Click "Update" to apply changes
- Click "Cancel" to discard changes
When saving as a complete HTML document, the editor generates:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Document Title</title>
<style>
/* Embedded CSS for beautiful styling */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
/* ... more styles ... */
</style>
</head>
<body>
<!-- Your content here -->
</body>
</html>
- Modify
editor.css
for custom editor styles - Update Tailwind classes in
index.php
- Customize the generated HTML CSS in
editor.js
- Add new toolbar buttons in
index.php
- Extend JavaScript functionality in
editor.js
- Modify PHP backend in
save.php
andopen.php
- HTML, CSS, JavaScript
- PHP, Python, Java
- C++, C#, SQL
- Bash, JSON, XML
- Markdown, Plain Text
- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
- File type validation for image uploads
- File size limits (5MB max for images)
- Filename sanitization for saved files
- XSS protection through proper HTML handling
- Input validation and sanitization
- Responsive design that works on all screen sizes
- Touch-friendly interface
- Mobile-optimized toolbar layout
- Gesture support for common actions
-
Images not uploading
- Check
assets/uploads
directory permissions (755 or 777) - Verify PHP file upload settings in
php.ini
- Check file size limits (max 5MB)
- Check
-
Files not saving
- Ensure PHP is enabled on your server
- Check directory write permissions
- Verify file path is correct
-
Styling issues
- Check if Tailwind CSS is loading properly
- Verify
editor.css
is included - Clear browser cache
-
Icons not showing
- Check internet connection for Font Awesome CDN
- Try refreshing the page
- Check browser console for errors
- Large files: Consider breaking content into smaller files
- Images: Optimize images before uploading
- Auto-save: Adjust the auto-save interval in
editor.js
- Browser: Use modern browsers for best performance
This project is open source and available under the MIT License.
Feel free to submit issues, feature requests, or pull requests to improve the editor.
- Complete HTML Generation: Creates standalone HTML files that work anywhere
- Modern Design: Beautiful, responsive interface with Tailwind CSS
- Rich Features: Tables, code blocks, image uploads, and more
- Keyboard Shortcuts: Professional-grade shortcuts for power users
- Mobile Friendly: Works perfectly on all devices
- No Dependencies: Pure HTML, CSS, and JavaScript (except Tailwind CDN and Font Awesome)
- Easy to Customize: Well-organized code for easy modification
- Production Ready: Includes security features and error handling
Start creating beautiful HTML content with your new professional editor! 🚀