jdahir0789/text-wrapper-plugin
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
=== Text Wrapper === Contributors: jdahir0789 Version: 1.0 Stable tag: 1.0 Author: JD Ahir Text Domain: text-wrapper Requires at least: 5.0 Tested up to: 6.7 Requires PHP: 7.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easily wrap selected text in WordPress editors with custom HTML tags and CSS classes for better styling and structure. === Description === Easily customize and style your content with the Text Wrapper plugin. Add a button to WordPress and ACF WYSIWYG editors to wrap selected text with your chosen HTML tag and CSS class. Perfect for applying consistent styles or custom behaviors without editing the HTML manually! === Features === 1. Custom HTML Wrapping: Wrap selected text with a configurable HTML tag and class directly in the WYSIWYG editor. 2. Highlight Management: Automatically highlight wrapped text for better visibility. 3. ACF Compatibility: Works seamlessly with ACF WYSIWYG fields, enhancing your custom fields experience. 4. Keyboard Shortcut: Wrap text quickly using a customizable keyboard shortcut (Ctrl+Alt+W). 5. Settings Page: Configure your preferred HTML tag and class easily in the WordPress settings page. 6. Visual Feedback: Toggle wrapping dynamically with real-time button activation in TinyMCE. === Use Cases === - Easily highlight important sections of text in your posts or custom fields. - Add custom CSS styling to specific parts of your content. - Streamline workflows for developers, designers, and content editors working on styled content. === How to Use === 1. Install and activate the plugin. 2. Go to Settings → Text Wrapper to configure your preferred HTML tag and CSS class. 3. In the editor, select the text you want to wrap. 4. Click the Text Wrapper Button or use the shortcut Ctrl+Alt+W to apply the wrapper. 5. The wrapped text is highlighted in the editor for easy identification. === Technical Details === - Languages: Ready for translation with .pot file support. - Hooks & Filters: Includes TinyMCE integration hooks for adding custom buttons and functionality. - Code Quality: Built with modern PHP practices and WordPress standards.