Changeset 36807
- Timestamp:
- 03/02/2016 10:09:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r36762 r36807 567 567 } 568 568 } ); 569 570 if ( window.getUserSetting( 'editor_plain_text_paste_warning' ) > 1 ) { 571 editor.settings.paste_plaintext_inform = false; 572 } 569 573 } ); 574 575 editor.on( 'PastePlainTextToggle', function( event ) { 576 // Warn twice, then stop. 577 if ( event.state === true ) { 578 var times = parseInt( window.getUserSetting( 'editor_plain_text_paste_warning' ), 10 ) || 0; 579 580 if ( times < 2 ) { 581 window.setUserSetting( 'editor_plain_text_paste_warning', ++times ); 582 } 583 } 584 }); 570 585 571 586 /**
Note: See TracChangeset
for help on using the changeset viewer.