This is a proof of concept of an inline css editor that saves the style changes to local disk.
Download and run index.php with php.
Eg using php local dev server:
php -S localhost:7777 -t .
Click an element and apply CSS styles like using a WYSIWYG editor.
- Save changes to live-styles.css files.
- Download current CSS styles.
- Save text edits from contenteditable elements on a local server file or in localstorage.
- When selecting an element apply it's css styles to Editor form.
- Make CSS styles from local file as inline styles to HTML.
- Undo/Redo options.
- Make this work with js created elements.
- Create a php function to generate the Editor.
- Rewrite the helper class Cssparser.php taken from https://github.com/intekhabrizvi/cssparser.
MIT Theodoros Ploumis.