WordPress.org

Make WordPress Core

Ticket #17144: 17144.close-if-can.patch

File 17144.close-if-can.patch, 435 bytes (added by trepmal, 3 years ago)

use close button if available

  • wp-includes/js/quicktags.dev.js

     
    570570 
    571571        qt.closeAllTags = function(editor_id) { 
    572572                var ed = this.getInstance(editor_id), btn = ed.getButton('close'); 
     573                if ( typeof btn  != 'undefined' ) 
    573574                btn.callback.call(btn, '', ed.canvas, ed); 
    574575        }; 
    575576