miniB HTML Editor – Documentation & Manual

License

MIT License

Copyright (c)  ColeNikol

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Features

New Features & Improvements

Toolbar & Icons

Bold
Italic
Underline
Strikethrough
Headings
Bullet List
Numbered List
Align Left
Align Center
Align Right
Justify
Text Color
Background Color
Insert Link
Insert Image
Insert Table
Insert Code
Preview
Save
Download
Open
Dark Mode

Manual & Usage

  1. Start Editing: Click in the editor area and begin typing. Use the toolbar for formatting and inserting elements.
  2. Insert Elements: Use the toolbar to insert links, images, tables, code blocks, and code snippets. All insertions use modern, accessible modal dialogs.
  3. Code Snippets: 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.
  4. Admin Panel: Go to assets/admin.php and log in with password 123. Manage all code snippets and uploaded files from a single interface.
  5. Upload Images: Drag and drop images into the editor or use the image modal to upload or link images.
  6. Mentions & Tags: Type @ for user mentions or # for tags to trigger autocomplete.
  7. Preview & Download: Use the Preview button to see your document in a new tab. Save will save your HTML file on the server in /assets/uploads. Download will download the file as HTML to your computer.
  8. Dark Mode: Click the Dark Mode button for a comfortable editing experience at night.
Tip: You can use keyboard shortcuts for most toolbar actions (e.g., Ctrl+B for bold, Ctrl+S to save).

API Points

FunctionDescription
showModal('modalId')Open a modal dialog by ID.
closeModal('modalId')Close a modal dialog by ID.
generateCompleteHTML(content, title)Generate a full HTML document for download/preview.
insertImage(src, alt, width, height)Insert an image at the caret position.
editor.innerHTMLGet/set the editor's HTML content.

Customization & Advanced Usage

FAQ & Troubleshooting

How do I save my work?

Click the Save button or use Ctrl+S. You can also download as HTML.

How do I upload images?

Use the image modal to upload from your device or enter an image URL. Drag & drop is also supported.

How do I change the editor's appearance?

Edit editor.css or the Tailwind config in index.php for global style changes.

Can I disable or hide certain features?

Yes, simply remove the relevant button or modal from index.php or comment out the related JavaScript in editor.js.

Where are my files saved?

By default, files are saved in assets/uploads/. You can change this in save.php and open.php.