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.
assets/snippett.json and can be copied to clipboard for quick reuse.assets/admin.php (password: 123) to manage all code snippets and uploaded files. You can add, edit, or delete snippets, view and delete uploaded files, delete by type, or empty the uploads folder (except index.php).assets/uploads.assets/admin.php and log in with password 123. Manage all code snippets and uploaded files from a single interface./assets/uploads. Download will download the file as HTML to your computer.| Function | Description |
|---|---|
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.innerHTML | Get/set the editor's HTML content. |
index.php, remove or comment out the <button id="saveFile" ...> in the toolbar section.save.php and open.php, edit the $uploadDir and file path variables to your preferred directories for saving files and uploads.editor.css to adjust colors, fonts, spacing, or add your own custom styles. You can also modify the Tailwind config in index.php for global changes.index.php as needed. Each button uses a data-command attribute for its action.index.php and can be customized for your workflow.editor.css under body.dark-mode and related selectors.editor.js for shortcut logic and add your own as needed.Click the Save button or use Ctrl+S. You can also download as HTML.
Use the image modal to upload from your device or enter an image URL. Drag & drop is also supported.
Edit editor.css or the Tailwind config in index.php for global style changes.
Yes, simply remove the relevant button or modal from index.php or comment out the related JavaScript in editor.js.
By default, files are saved in assets/uploads/. You can change this in save.php and open.php.