53ny4/ez-block-editor

WYSIWYG block editor

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

0.2.5 2024-11-15 08:59 UTC

This package is auto-updated.

Last update: 2024-12-15 09:08:09 UTC


README

NOTE: Project is in VERY EARLY STAGE and still in development and may contain bugs or incomplete features.

Description

A versatile and user-friendly WYSIWYG block editor that allows users to add and format blocks, including headers, paragraphs, images, links, and embedded content. The editor provides options for uploading images or linking from URLs, inserting media from embedded links, and applying text styling.

Images

Editor

Editor

Editor

Tech Stack

  • HTML/CSS: Basic structure and styling
  • JavaScript (jQuery): Dynamic content manipulation and AJAX requests
  • Bootstrap: Responsive UI components
  • SortableJS: Drag-and-drop functionality
  • PHP: Backend for image handling and URL parsing

Features

  • Add Different Block Types: Easily add headers, paragraphs, images, links, and embedded content.
  • Image Upload & URL Insertion: Choose to upload an image or insert it via a URL.
  • Resizable Images: Resize images by dragging the corner.
  • Responsive Link & Embed Blocks: Preview links and embedded content dynamically based on Open Graph metadata.
  • Text Styling Options: Apply bold, italic, underline, and strikethrough formatting.
  • Drag-and-Drop: Organize blocks by dragging them to your desired order.

Installation

Note: Currently all dependencies are imported from CDNs, so no need to install any packages.

  1. Clone the repository - git clone https://github.com/53ny4/ez-block-editor.git
  2. Run a local server (e.g., php -S localhost:8000)
  3. Open index.html in your browser
  4. Done!

ToDo

  • Add more block types
  • Clean up code and dependencies
  • Make modular and reusable components
  • Data output and saving
  • Handle url parsing and embeds (currently in test mode)
  • ...and many, many more things I can't think of right now

Tested Browsers

  • Google Chrome
  • Microsoft Edge