# AF Enhanced HTML Node - Complete Usage Guide A ComfyUI Note node with HTML capabilities. Create notes, UI's and ReadMe's directly inside the workflow using rich HTML formatting. --- ## ✨ Key Features - **Rich HTML Support** - Full HTML formatting with colored sections, lists, tables, code blocks, and more - **Non-Intrusive Design** - Doesn't interfere with normal ComfyUI workflow interactions - **Easy Editing** - Double-click anywhere on the content to edit HTML - **Smart Links** - Ctrl+click to open external links (JavaScript disabled for security) - **Beautiful Styling** - Predefined color schemes that match ComfyUI's theme - **Custom HTML Support** - Write your own HTML with inline styles or customize the external CSS file --- ## đŸ› ī¸ Installation ### Via ComfyUI Manager (Recommended) 1. Open ComfyUI Manager 2. Search for "AF - Enhanced HTML Note" 3. Install ### Manual Installation 1. Clone this repository into your `ComfyUI/custom_nodes/` directory: ```bash git clone https://github.com/alFrame/ComfyUI-AF-Enhanced-HTML-Note.git ``` --- ## 🎮 Interaction Guide ### Editing Content - **Double-click** anywhere on the HTML content to enter edit mode - **Escape key** or click outside to exit edit mode and save changes - Changes are automatically saved when exiting edit mode ### Using Links - **Hold Control key + Click** on any link to activate it - External links open in new tabs - JavaScript execution is disabled for security ### Node Management - **Click and drag** the node title bar to move - **Drag edges/corners** to resize - **Middle mouse button** works for canvas panning (like other nodes) --- ## 🎨 Custom CSS Styling The node uses an external CSS file (`AF-Enhanced-HTML-Note.css`) that you can customize to match your preferences or create your own styling themes. ### Editing the CSS The CSS file is located at: ``` ComfyUI/custom_nodes/ComfyUI-AF-Enhanced-HTML-Note/web/AF-Enhanced-HTML-Note.css ``` You can edit this file directly to: - Change colors of predefined sections (`.af-positive`, `.af-negative`, etc.) - Modify spacing and padding - Adjust font sizes and typography - Create new custom section classes - Change scrollbar styling - Customize the edit button appearance - OR **completely** replace the entire CSS and use your own classes. (Don't forget to change the classes in the HTML node in your ComfyUI workflow !!) ### Example: Creating a Custom Section Color Add this to the CSS file to create a new teal section style: ```css .af-html-note-content .af-section.af-teal { background: rgba(64, 224, 208, 0.1); border-left-color: #40E0D0; } ``` Then use it in your HTML: ```html

đŸŸĸ Teal Section

Your custom styled content...

``` **Note:** After editing the CSS file, refresh your browser (Ctrl+F5 or Cmd+Shift+R) to see the changes. --- ## 🎨 Predefined Section Colors The node comes with several predefined colored section styles. Click each section below to see the code and rendered example.
đŸŸĸ Positive Section (Green) ### Code: ```html

đŸŸĸ Positive Prompts

masterpiece, best quality, highly detailed

``` ### Rendered Result: ![Positive Section Example](Docs/examples/positive-section.webp)
🔴 Negative Section (Red) ### Code: ```html

🔴 Negative Prompts

low quality, blurry, distorted

nsfw, watermark, signature, bad anatomy

``` ### Rendered Result: ![Negative Section Example](Docs/examples/negative-section.webp)
📝 Neutral Section (Gray) ### Code: ```html

📝 Notes

General notes and information...

``` ### Rendered Result: ![Neutral Section Example](Docs/examples/neutral-section.webp)
â„šī¸ Info Section (Light Blue) ### Code: ```html

â„šī¸ Information

Using: SDXL 1.0

Steps: 25 | CFG: 7.5 | Sampler: DPM++ 2M Karras

``` ### Rendered Result: ![Info Section Example](Docs/examples/info-section.webp)
âš ī¸ Warning Section (Yellow) ### Code: ```html

âš ī¸ Warning

This workflow requires:

  1. High VRAM (8GB+)
  2. Latest ComfyUI version
  3. SDXL compatible models
``` ### Rendered Result: ![Warning Section Example](Docs/examples/warning-section.webp)
💛 Yellow Section (Alternative) ### Code: ```html

💛 Yellow Section

Alternative yellow styled content with different shade...

``` ### Rendered Result: ![Yellow Section Example](Docs/examples/yellow-section.webp)
đŸ”ĩ Blue Section (Deep Blue) ### Code: ```html

đŸ”ĩ Blue Section

Deep blue styled content for technical information...

``` ### Rendered Result: ![Blue Section Example](Docs/examples/blue-section.webp)
🎨 Custom Section (Purple) ### Code: ```html

🎨 Custom

Purple custom styled content for special cases...

``` ### Rendered Result: ![Custom Section Example](Docs/examples/custom-section.webp)
--- ## 📏 Predefined Spacers Use these spacer classes to control vertical spacing between elements.
All Spacer Sizes - Click to see examples ### Code: ```html
Content Block 1
Content Block 2
Content Block 3
Content Block 4
Content Block 5
Content Block 6
Content Block 7
``` ### Rendered Result: ![Spacer Examples](Docs/examples/spacers.webp) ### Size Reference: - `af-spacer-top` → 2px - `af-spacer-mini` → 4px - `af-spacer-small` → 8px - `af-spacer` → 16px (default) - `af-spacer-large` → 32px - `af-spacer-xl` → 48px
--- ## 📐 Column Layouts Create two-column layouts using the predefined column classes.
Two-Column Layout Example ### Code: ```html

🎨 Style Settings

  • Style: Photorealistic
  • Aspect: 16:9
  • Quality: Ultra High

âš™ī¸ Technical

Resolution: 1920x1080

Batch: 4

đŸšĢ Exclusions

  • No text in image
  • Avoid oversaturation
  • No watermarks

💡 Tips

Use lower CFG for more creative results

``` ### Rendered Result: ![Two Column Layout Example](Docs/examples/two-column-layout.webp) **Note:** The `row` class ensures proper column wrapping, and each column is 49% width with 1% margin.
--- ## 🔗 Clickable Links & Actions All links require **Ctrl+Click** to activate for safety and to prevent accidental navigation. JavaScript actions work on links when Ctrl+Click is used.
Link Examples ### Code: ```html

🔗 Interactive Links

ComfyUI GitHub Repository

Jump to section

Send Email

Documentation

``` **Remember:** Hold **Ctrl** while clicking any link to activate it! ### Rendered Result: ![Link Examples](Docs/examples/links.webp)
### Supported Link Types: - ✅ **External URLs** (`https://`, `http://`) - Open in new tab - ✅ **Anchor links** (`#section`) - Page navigation - ✅ **Mailto links** (`mailto:`) - Open email client - ✅ **Tel links** (`tel:`) - Open phone app - ✅ **Relative URLs** - Open in new tab ### Not Supported Link Types: - ❌ **JavaScript links** (`javascript:`) - Blocked for security - ❌ **onclick handlers** - Ignored for security ### Security Restrictions: - **No JavaScript execution** - All JavaScript is blocked for security - **No `