Plugin Directory

Changeset 3699468


Ignore:
Timestamp:
09/17/2026 03:10:28 AM (5 weeks ago)
Author:
swarnodigital
Message:

0.15.5: All Tables fix, HTML cell click behavior, Advanced Editor Link button, Plugins-page author link

Location:
orki-table-builder-pro/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orki-table-builder-pro/trunk/assets/js/admin-editor.js

    r3696118 r3699468  
    18221822        }
    18231823
     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
    18241842        // Best-effort: appends closing tags for anything still open, in reverse order.
    18251843        function closeOpenTags( textarea ) {
    … …  
    19832001                        tagBar.appendChild( button( t[ 0 ], '', function () {
    19842002                                if ( 'link' === t[ 0 ] ) {
    1985                                         openLinkModal( function ( html ) { insertAtCursor( textarea, html ); } );
     2003                                        insertLinkTag( textarea );
    19862004                                        return;
    19872005                                }
    … …  
    23582376                                                isDragging = true;
    23592377                                                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".
    23682383                                        }
    23692384                                } );
  • orki-table-builder-pro/trunk/changelog.txt

    r3698629 r3699468  
    88
    99== 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.
    1017
    1118= 0.15.4 =
  • orki-table-builder-pro/trunk/includes/class-orkitbp-metaboxes.php

    r3696118 r3699468  
    881881                                'themeDefault'  => __( '(Theme default)', 'orki-table-builder-pro' ),
    882882                                'insertMenu'    => __( 'Insert', 'orki-table-builder-pro' ),
     883                                'linkTextPlaceholder' => __( 'Link Text', 'orki-table-builder-pro' ),
    883884                                'addRowAbove'   => __( 'Add above', 'orki-table-builder-pro' ),
    884885                                'addRowBelow'   => __( 'Add below', 'orki-table-builder-pro' ),
  • orki-table-builder-pro/trunk/readme.txt

    r3698629 r3699468  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 0.15.4
     7Stable tag: 0.15.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5959== Changelog ==
    6060
     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
    6166= 0.15.4 =
    6267* 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  
    44 * Plugin URI: https://orki.in
    55 * Description: Create, style, and manage tables visually, then drop them anywhere with a shortcode or block.
    6  * Version: 0.15.4
     6 * Version: 0.15.5
    77 * Requires at least: 6.0
    88 * Requires PHP: 7.4
    … …  
    2121// Constants
    2222// ---------------------------------------------------------------------
    23 define( 'ORKITBP_VERSION', '0.15.4' );
     23define( 'ORKITBP_VERSION', '0.15.5' );
    2424define( 'ORKITBP_PATH', plugin_dir_path( __FILE__ ) );
    2525define( 'ORKITBP_URL', plugin_dir_url( __FILE__ ) );
    … …  
    8484}
    8585add_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.
     98function 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}
     104add_filter( 'all_plugins', 'orkitbp_link_author_name_on_plugins_page' );
Note: See TracChangeset for help on using the changeset viewer.