Changeset 3699468
- Timestamp:
- 09/17/2026 03:10:28 AM (5 weeks ago)
- Location:
- orki-table-builder-pro/trunk
- Files:
-
- 5 edited
-
assets/js/admin-editor.js (modified) (3 diffs)
-
changelog.txt (modified) (1 diff)
-
includes/class-orkitbp-metaboxes.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
table-builder-pro.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
orki-table-builder-pro/trunk/assets/js/admin-editor.js
r3696118 r3699468 1822 1822 } 1823 1823 1824 // Like the other quicktag buttons, but the Link button needs slightly 1825 // different behavior than a plain wrap: an empty href, a placeholder 1826 // link text when nothing is selected (matching the task's example 1827 // output), and the cursor left inside the href value either way, ready 1828 // to type the URL immediately. 1829 function insertLinkTag( textarea ) { 1830 var start = textarea.selectionStart, end = textarea.selectionEnd; 1831 var val = textarea.value; 1832 var selected = val.slice( start, end ); 1833 var linkText = selected || L10n.linkTextPlaceholder || 'Link Text'; 1834 var before = '<a href="'; 1835 var after = '">' + linkText + '</a>'; 1836 textarea.value = val.slice( 0, start ) + before + after + val.slice( end ); 1837 var hrefPos = start + before.length; 1838 textarea.selectionStart = textarea.selectionEnd = hrefPos; 1839 textarea.focus(); 1840 } 1841 1824 1842 // Best-effort: appends closing tags for anything still open, in reverse order. 1825 1843 function closeOpenTags( textarea ) { … … 1983 2001 tagBar.appendChild( button( t[ 0 ], '', function () { 1984 2002 if ( 'link' === t[ 0 ] ) { 1985 openLinkModal( function ( html ) { insertAtCursor( textarea, html ); });2003 insertLinkTag( textarea ); 1986 2004 return; 1987 2005 } … … 2358 2376 isDragging = true; 2359 2377 markSelectionOnly(); 2360 // Advanced Cells open straight into the Advanced Editor on 2361 // a plain click — there's no inline view of them to select 2362 // into first. Shift/Ctrl-click above deliberately skip 2363 // this, so multi-selecting a range or a set of cells that 2364 // happens to include one still works normally. 2365 if ( 'text' === cell.cellType && cell.isHtml ) { 2366 openAdvancedEditor(); 2367 } 2378 // A plain single click now only selects an HTML/Advanced 2379 // cell, same as any other cell — it no longer opens the 2380 // Advanced Editor immediately. Double-click (below) is 2381 // what opens it, matching how every other cell type 2382 // already distinguishes "select" from "start editing". 2368 2383 } 2369 2384 } ); -
orki-table-builder-pro/trunk/changelog.txt
r3698629 r3699468 8 8 9 9 == Changelog == 10 11 = 0.15.5 = 12 * Changed HTML/Advanced Cell click behavior: a single click now only selects the cell, matching every other cell type, instead of immediately opening the Advanced Editor. Double-click opens the Advanced Editor, same as it already did. This was an intentional design choice made back in 0.10.0, but made it impossible to simply select an HTML cell (e.g. one made via Insert Link) without the editor popping up. 13 * Scoped precisely to the plain-click case: Shift/Ctrl-click for range/multi-selection were unaffected either way, and Enter/F2 and "just start typing" (which also open the Advanced Editor for these cells) are keyboard interactions, not click interactions, and were deliberately left unchanged. 14 * No changes to how HTML content is stored, sanitized, or rendered, on the frontend or in the editor — only which click opens the editor. 15 * Advanced Editor's Link quicktag button now matches every other formatting button: clicking it immediately inserts an anchor tag (wrapping the current selection if there is one, or a "Link Text" placeholder if not), with the cursor left inside the empty href value ready to type the URL — instead of opening the separate Link modal, which was inconsistent with how b/i/del/ins/code already behave. The standalone "Insert Link" toolbar action (a different feature, for a whole cell) still uses that modal — unchanged. 16 * On the Plugins list screen, "Orki" in "By Orki" now links to https://orki.in. Done via the all_plugins filter on the displayed plugin data specifically, not by adding an Author URI header back to the plugin file — that header was removed in 0.14.1 because WordPress.org requires Plugin URI and Author URI to differ, and both would point to the same domain here. This changes only what that one row shows; the actual plugin header stays exactly as WordPress.org validated it. 10 17 11 18 = 0.15.4 = -
orki-table-builder-pro/trunk/includes/class-orkitbp-metaboxes.php
r3696118 r3699468 881 881 'themeDefault' => __( '(Theme default)', 'orki-table-builder-pro' ), 882 882 'insertMenu' => __( 'Insert', 'orki-table-builder-pro' ), 883 'linkTextPlaceholder' => __( 'Link Text', 'orki-table-builder-pro' ), 883 884 'addRowAbove' => __( 'Add above', 'orki-table-builder-pro' ), 884 885 'addRowBelow' => __( 'Add below', 'orki-table-builder-pro' ), -
orki-table-builder-pro/trunk/readme.txt
r3698629 r3699468 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0.15. 47 Stable tag: 0.15.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 59 59 == Changelog == 60 60 61 = 0.15.5 = 62 * Changed HTML/Advanced Cell click behavior: a single click now only selects the cell, matching every other cell type, instead of immediately opening the Advanced Editor. Double-click opens it, as before. No change to how HTML content is stored or rendered — only which click opens the editor. 63 * Advanced Editor's Link button now inserts an anchor tag immediately, like every other formatting button, instead of opening a separate modal. 64 * "Orki" in "By Orki" on the Plugins list screen now links to https://orki.in (display-only change, the plugin header itself is untouched). See changelog.txt for the full account of all three changes. 65 61 66 = 0.15.4 = 62 67 * The actual fix for the All Tables blank-until-scroll bug — the two earlier attempts (0.15.2, 0.15.3) were both confirmed by live testing not to work. Real root cause: the tab navigation bar's floated child elements collapsed their container to zero height with nothing to clear them, which under certain other admin CSS on the page left the table below it failing to paint until scroll forced a layout recalculation. Fixed with display: flow-root, the standard modern fix for a collapsed-float container, rather than the generic repaint workarounds tried before. See changelog.txt for the full account. -
orki-table-builder-pro/trunk/table-builder-pro.php
r3698629 r3699468 4 4 * Plugin URI: https://orki.in 5 5 * Description: Create, style, and manage tables visually, then drop them anywhere with a shortcode or block. 6 * Version: 0.15. 46 * Version: 0.15.5 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 21 21 // Constants 22 22 // --------------------------------------------------------------------- 23 define( 'ORKITBP_VERSION', '0.15. 4' );23 define( 'ORKITBP_VERSION', '0.15.5' ); 24 24 define( 'ORKITBP_PATH', plugin_dir_path( __FILE__ ) ); 25 25 define( 'ORKITBP_URL', plugin_dir_url( __FILE__ ) ); … … 84 84 } 85 85 add_filter( 'plugin_action_links_' . ORKITBP_BASENAME, 'orkitbp_plugin_action_links' ); 86 87 // --------------------------------------------------------------------- 88 // Link "Orki" in the "By Orki" line on the Plugins list screen 89 // --------------------------------------------------------------------- 90 // Deliberately done here, on the *displayed* plugin data, rather than by 91 // adding an "Author URI" header back to the plugin file. That header was 92 // removed in 0.14.1 specifically because WordPress.org requires Plugin URI 93 // and Author URI to be different values, and both would point to 94 // https://orki.in — restoring it would reintroduce that exact rejection. 95 // This only changes what this one row shows on this one admin screen; the 96 // actual plugin header (what WordPress.org's own validation reads) is 97 // untouched. 98 function orkitbp_link_author_name_on_plugins_page( $plugins ) { 99 if ( isset( $plugins[ ORKITBP_BASENAME ] ) ) { 100 $plugins[ ORKITBP_BASENAME ]['Author'] = '<a href="https://orki.in/" target="_blank" rel="noopener noreferrer">Orki</a>'; 101 } 102 return $plugins; 103 } 104 add_filter( 'all_plugins', 'orkitbp_link_author_name_on_plugins_page' );
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)