LC Element Tools
Simple element selection with classes manager and HTML editor for LC-Blocksy stack
by Matt (WordPress Plugin Engineer) · github.com/danielrsnell/livecanvas-panel · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/danielrsnell/livecanvas-panel/archive/refs/heads/main.zipReadme
LC Element Tools v2.0
A modern React-based element editing tool for the LC-Blocksy stack, rebuilt with React, Vite, and ShadCN UI components.
Features
- CMD+Click Element Selection: Hold CMD/Ctrl and click any element to select it for editing
- Fixed Bottom-Left Interface: Clean, non-modal interface positioned at bottom-left of screen
- Real-time Class Management: Edit CSS classes with live preview
- HTML Editor: Edit element HTML content with syntax highlighting
- Modern UI: Built with ShadCN UI components and Tailwind CSS
- Smooth Animations: Framer Motion powered transitions
- TypeScript: Full type safety and developer experience
Installation
- Upload the
lc-element-toolsfolder to/wp-content/plugins/ - Activate the plugin through the WordPress admin
- The plugin will automatically load on frontend pages for users with edit capabilities
Usage
Element Selection
- Visit any frontend page while logged in with edit capabilities
- Hold CMD (Mac) or Ctrl (Windows/Linux)
- Click on any element you want to edit
- The element tools modal will open
Editing Classes
- Select an element using CMD+Click
- In the modal, stay on the "CSS Classes" tab
- Add or modify CSS classes (space-separated)
- Click "Save Changes" to apply
Editing HTML
- Select an element using CMD+Click
- Switch to the "HTML Editor" tab
- Modify the HTML content
- Click "Save Changes" to apply
Keyboard Shortcuts
- Escape: Close modal and deselect element
- CMD/Ctrl + Enter: Save changes
- CMD/Ctrl + Click: Select element
Technical Details
File Structure
lc-element-tools/
├── lc-element-tools.php (main plugin file)
├── assets/
│ ├── js/
│ │ ├── element-selector.js (CMD+Click detection)
│ │ └── modal-interface.js (modal UI)
│ └── css/
│ └── element-tools.css (styling)
├── includes/
│ ├── class-element-tools.php (core functionality)
│ └── class-frontend-injector.php (interface injection)
└── README.md
Requirements
- WordPress 5.0+
- PHP 7.4+
- jQuery (included with WordPress)
- User must have
edit_postscapability
Browser Support
- Chrome 60+
- Firefox 60+
- Safari 12+
- Edge 79+
Development
This plugin is designed for the LC-Blocksy Boilerplate stack and integrates with:
- Livecanvas visual page builder
- Blocksy theme
- Windpress Tailwind integration
Week 1 Implementation
- ✅ Basic plugin structure
- ✅ CMD+Click element selection
- ✅ Modal interface for classes and HTML editing
- ✅ Visual feedback and indicators
- ✅ WordPress integration and security
Future Enhancements
- Element data persistence
- Undo/redo functionality
- More advanced HTML editing
- Integration with Livecanvas components
- Bulk editing capabilities
Security
- All AJAX requests use WordPress nonces
- User capability checks (
edit_posts) - Input sanitization and validation
- XSS protection with
wp_kses_post()
Changelog
1.0.0
- Initial release
- CMD+Click element selection
- Basic classes and HTML editing
- Modal interface
- Visual feedback system
Author
Matt (WordPress Plugin Engineer) - LC-Blocksy Boilerplate Project