-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
This issue involves creating an HTML editor with the following features:
-
Class Management:
- Display all classes of the current HTML tag when hovering over it in the preview area.
- List all classes in a sidebar, allowing the user to modify, delete, or add new classes.
- Support adding new classes and previewing changes in real time.
-
Layout:
- Split layout with the left side containing the HTML source code editor and toolbar, and the right side showing a live preview.
-
HTML Editing:
- Allow inserting new
<div>elements at the cursor position in the source code editor or wrapping selected text with a new<div>. - Enable inserting one or more classes from the class list at the cursor position in the source code editor.
- Allow inserting new
-
Export Options:
- Export or copy one, multiple, or all classes along with their CSS definitions.
- Provide buttons to export the result as an image or a single HTML file.
-
Class Details:
- Clicking a class name should display its CSS properties below, allowing modifications with real-time preview.
-
Dynamic Class Addition:
- Support adding new classes directly in the source editor or through a dedicated button, with real-time preview.
-
UI/UX:
- Ensure the layout is aesthetically pleasing and the operations are user-friendly.
This editor should leverage modern web technologies like JavaScript, CSS, and HTML. Libraries like CodeMirror (for the source editor) and html2canvas (for exporting as an image) may be used.
Metadata
Metadata
Assignees
Labels
No labels