How to use CssEditor
- Make sure the editor is not disabled. If the editor's titlebar says "(disabled)", click the enable button.
- When the editor is enabled, click any element on the page.
- Use the editor to change properties of the selected element's style. Not all properties will be modifiable.
- The stylesheet is saved to the filesystem by clicking Save.
Testing
Tests
- select element
- dynamic outline should disappear when the editor is used.
-
Border Selector
- All parts of the border selector should be disabled if border is not specified for the selected element's rule
- new border styles and border widths should always work
- undo | redo should work properly across multiple component and multiple style rule changes.
Bugs
colorpicker: implement transparent and inherit.(inherit will not be implemented)- create service to save stylesheet text to filesystem.
implement undo and redo- create buttons for undo()/redo().
border style new values only work the first time, e.g. "outset" works once, but not a second time.- DragLib: make esc release dragObj to where it was grabbed from, not from after where it was dragged from.
ElementWithRules: Fix the activation method
About
The CssEditor allows you to edit styles on a page by clicking elements that have those styles.
Save the stylesheet to update your entire site. (TODO)
Help Needed
- Usability Engineer needed (to improve usability)
- Java Developer needed (to create service)
- JavaScript Developers needed (for refactoring, peer review, documentation).
Saving the StyleSheet
The StyleSheet is saved to the filesystem.
When the user clicks "save", a POST request is sent to the server with the stylesheet text.
The file is opened (on the server) and the contents are replaced with the styleSheetText that was received from the client in the POST request.
License