Changeset 3381325
- Timestamp:
- 10/20/2025 01:21:44 PM (5 months ago)
- Location:
- ready-made-oxygen-integration
- Files:
-
- 15 added
- 5 edited
-
tags/1.2.2 (added)
-
tags/1.2.2/README.md (added)
-
tags/1.2.2/includes (added)
-
tags/1.2.2/includes/js (added)
-
tags/1.2.2/includes/js/addPasteButton-modular.js (added)
-
tags/1.2.2/includes/js/modules (added)
-
tags/1.2.2/includes/js/modules/fontManager.js (added)
-
tags/1.2.2/includes/js/modules/fontProcessor.js (added)
-
tags/1.2.2/includes/js/modules/imageProcessor.js (added)
-
tags/1.2.2/includes/js/modules/pasteHandler.js (added)
-
tags/1.2.2/includes/js/modules/progressIndicator.js (added)
-
tags/1.2.2/includes/js/modules/toastNotifications.js (added)
-
tags/1.2.2/includes/js/modules/uiComponents.js (added)
-
tags/1.2.2/readme.txt (added)
-
tags/1.2.2/ready-made-oxygen-integration.php (added)
-
trunk/README.md (modified) (2 diffs)
-
trunk/includes/js/addPasteButton-modular.js (modified) (1 diff)
-
trunk/includes/js/modules/uiComponents.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/ready-made-oxygen-integration.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ready-made-oxygen-integration/trunk/README.md
r3375669 r3381325 1 1 # Ready-Made Oxygen Integration 2 2 3 [](https://levels.dev)3 [](https://levels.dev) 4 4 [](https://wordpress.org) 5 5 [](https://oxygenbuilder.com) … … 117 117 ## 📓 Changelog 118 118 119 ### 1.2.2 – Code Block Paste Fix 120 - 🐛 **Fixed**: Native paste now works correctly in Oxygen code blocks and contenteditable elements 121 119 122 ### 1.2.1 – Progress Indicator 120 123 - 📊 **Progress Indicator**: Visual progress bar for image uploads to WP Media Library with real-time tracking -
ready-made-oxygen-integration/trunk/includes/js/addPasteButton-modular.js
r3375669 r3381325 3 3 * Modular structure for better maintainability 4 4 * 5 * Version: 1.2. 16 */ 7 8 console.log("READOXIN: ✅ Plugin loaded v1.2. 1");5 * Version: 1.2.2 6 */ 7 8 console.log("READOXIN: ✅ Plugin loaded v1.2.2"); 9 9 10 10 // Verify modules are loaded -
ready-made-oxygen-integration/trunk/includes/js/modules/uiComponents.js
r3375666 r3381325 216 216 document.querySelector('[ng-controller="BuilderController"]'); 217 217 218 if (isInBuilder && event.target.tagName !== 'TEXTAREA' && event.target.tagName !== 'INPUT') { 218 // Check if the target is an editable element that should use native paste 219 const shouldAllowNativePaste = isEditableElement(event.target); 220 221 if (isInBuilder && !shouldAllowNativePaste) { 219 222 event.preventDefault(); 220 223 pasteHandler(); … … 223 226 }); 224 227 } 228 229 /** 230 * Check if an element should allow native paste behavior 231 * @param {HTMLElement} element - The target element 232 * @returns {boolean} - True if native paste should be allowed 233 */ 234 function isEditableElement(element) { 235 if (!element) return false; 236 237 // Check tag name 238 const tagName = element.tagName; 239 if (tagName === 'TEXTAREA' || tagName === 'INPUT') { 240 return true; 241 } 242 243 // Check contenteditable 244 if (element.isContentEditable || element.contentEditable === 'true') { 245 return true; 246 } 247 248 // Check if inside CodeMirror editor 249 if (element.closest('.CodeMirror') || element.closest('.CodeMirror-code')) { 250 return true; 251 } 252 253 // Check if inside ACE editor 254 if (element.closest('.ace_editor') || element.closest('.ace_text-input')) { 255 return true; 256 } 257 258 // Check if inside Monaco editor 259 if (element.closest('.monaco-editor')) { 260 return true; 261 } 262 263 // Check for Oxygen code block specific classes (add any specific selectors) 264 if (element.closest('.oxygen-code-block') || 265 element.closest('.ct-code-block') || 266 element.closest('[data-oxygen-code-block]')) { 267 return true; 268 } 269 270 return false; 271 } -
ready-made-oxygen-integration/trunk/readme.txt
r3375669 r3381325 5 5 Requires at least: 5.0 6 6 Tested up to: 6.8 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 Requires PHP: 7.2 9 9 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 1.2.2 = 74 * Fixed: Native paste now works in Oxygen code blocks and contenteditable elements 75 73 76 = 1.2.1 = 74 77 * Visual progress indicator for image uploads to WP Media Library -
ready-made-oxygen-integration/trunk/ready-made-oxygen-integration.php
r3375669 r3381325 7 7 * Plugin URI: https://levels.dev/automatic-webdevelopment-from-figma-via-copy-paste 8 8 * Description: Essential integration for the Ready-Made Figma plugin to enable copy-paste functionality with Oxygen 4. 9 * Version: 1.2. 19 * Version: 1.2.2 10 10 * Author: levels.dev 11 11 * Author URI: https://levels.dev … … 22 22 define('SCRIPT_DEBUG', true); 23 23 // Define plugin version 24 define('READOXIN_JS_VERSION', '1.2. 1');24 define('READOXIN_JS_VERSION', '1.2.2'); 25 25 26 26 // Use global namespace for WordPress hooks
Note: See TracChangeset
for help on using the changeset viewer.