Make WordPress Core

Ticket #40331: 40331-wp-link-url.diff

File 40331-wp-link-url.diff, 1.3 KB (added by joedolson, 15 months ago)

Remove placeholder in classic visual editing link editor

  • src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js

     
    5656                renderHtml: function() {
    5757                        return (
    5858                                '<div id="' + this._id + '" class="wp-link-input">' +
    59                                         '<input type="text" value="" placeholder="' + tinymce.translate( 'Paste URL or type to search' ) + '" />' +
     59                                        '<label for="' + this._id + '_label">' + tinymce.translate( 'Paste URL or type to search' ) + '</label><input type="text" value="" />' +
    6060                                        '<input type="text" style="display:none" value="" />' +
    6161                                '</div>'
    6262                        );
  • src/wp-includes/css/editor.css

     
    17381738        color: #d63638;
    17391739}
    17401740
     1741div.mce-flow-layout-item > div {
     1742        display: flex;
     1743        align-items: end;
     1744}
     1745
    17411746div.wp-link-input {
    17421747        float: left;
    17431748        margin: 2px;
     
    17441749        max-width: 694px;
    17451750}
    17461751
     1752div.wp-link-input label {
     1753        margin-bottom: 4px;
     1754        display: block;
     1755}
     1756
    17471757div.wp-link-input input {
    17481758        width: 300px;
    17491759        padding: 3px;