Changeset 3571469
- Timestamp:
- 06/14/2026 02:58:58 AM (4 months ago)
- Location:
- advanced-editor-for-additional-css
- Files:
-
- 7 added
- 4 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/README.md (added)
-
tags/1.0.2/advanced-additional-css.php (added)
-
tags/1.0.2/css (added)
-
tags/1.0.2/css/editor-style.css (added)
-
tags/1.0.2/js (added)
-
tags/1.0.2/js/editor-script.js (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/advanced-additional-css.php (modified) (1 diff)
-
trunk/css/editor-style.css (modified) (3 diffs)
-
trunk/js/editor-script.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
advanced-editor-for-additional-css/trunk/README.md
r3559195 r3571469 59 59 == Changelog == 60 60 61 = 1.0.2 - 13 jun, 2026 = 62 * HOTFIX: increased line numbers when text overflows textarea vertically 63 * Text wrapping deleted: Horizontally scrollable textarea 64 61 65 = 1.0.1 - 3 jun, 2026 = 62 66 * New styles to avoid textarea overflowing -
advanced-editor-for-additional-css/trunk/advanced-additional-css.php
r3559195 r3571469 3 3 * Plugin Name: Advanced editor for Additional CSS 4 4 * Description: Enhance the Additional CSS editor in Gutenberg / FSE with line numbers, indented and improved styling. 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Author: Jorge del Campo Andrade 7 7 * Author URI: https://jdca.cl -
advanced-editor-for-additional-css/trunk/css/editor-style.css
r3559195 r3571469 9 9 overflow: hidden; 10 10 height: 65vh; 11 position: relative; 11 12 } 12 13 … … 22 23 border-right: 1px solid #ccc !important; 23 24 white-space: pre !important; 25 overflow-x: hidden !important; 26 overflow-y: scroll !important; 27 flex-shrink: 0 !important; 28 scrollbar-width: none !important; 29 -ms-overflow-style: none !important; 30 } 31 32 .gcss-pro-line-numbers::-webkit-scrollbar { 33 display: none !important; 34 } 35 36 .gcss-pro-line-numbers div { 37 height: 19.5px !important; 38 line-height: 19.5px !important; 24 39 } 25 40 … … 38 53 box-shadow: none !important; 39 54 resize: none; 40 text-wrap: wrap!important;41 white-space: wrap!important;55 overflow-x: auto !important; 56 overflow-y: auto !important; 42 57 } -
advanced-editor-for-additional-css/trunk/js/editor-script.js
r3547312 r3571469 17 17 const syncLines = () => { 18 18 const lines = textarea.value.split('\n').length; 19 lineNumbers.innerText = Array.from({length: lines}, (_, i) => i + 1).join('\n'); 19 lineNumbers.innerHTML = Array.from({length: lines}, (_, i) => i + 1).map(n => `<div>${n}</div>`).join(''); 20 21 // Ajustar la altura de los divs de números de línea para coincidir con el textarea 22 const lineHeight = parseFloat(getComputedStyle(textarea).lineHeight) || 19.5; 23 const divs = lineNumbers.querySelectorAll('div'); 24 divs.forEach(div => { 25 div.style.height = lineHeight + 'px'; 26 div.style.lineHeight = lineHeight + 'px'; 27 }); 20 28 }; 21 29
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)