A modern block editor application built with Electron.
- Block-based document editing (text, headings, to-do lists, code blocks, etc.)
- Drag and drop block reordering
- Document saving and loading
- Database integration
- Responsive design for desktop and mobile
- Clone this repository
- Install dependencies:
npm install
To start the application in production mode:
npm start
To start the application in development mode:
npm run dev
-
/backend
- Electron main process codemain.js
- Main process entry pointpreload.js
- Preload script for secure API access
-
/frontend
- Frontend UI codeindex.html
- Main HTML file/js
- JavaScript fileseditor.js
- Block editor functionalityapp.js
- Application logic and integration with backend
/css
- CSS stylesstyles.css
- Main stylesheet
- Create a new document using the "New Page" button in the sidebar
- Add blocks using the "+ Add Block" buttons below the editor
- Edit block content by clicking on them
- Reorder blocks by dragging and dropping
- Save your document using the "Save" button in the toolbar
The application will save documents to local storage when running without Electron (e.g., opening the HTML file directly in a browser). When running in Electron, it will save to the filesystem.
This project is licensed under the MIT License - see the LICENSE file for details.