Merge "Toolbar: ignore modifications on readonly textarea"

This commit is contained in:
jenkins-bot 2018-11-14 20:51:06 +00:00 committed by Gerrit Code Review
commit fa63708bd5

View file

@ -245,6 +245,9 @@
switch ( action.type ) {
case 'replace':
case 'encapsulate':
if ( context.$textarea.prop( 'readonly' ) ) {
break;
}
parts = {
pre: $.wikiEditor.autoMsg( action.options, 'pre' ),
peri: $.wikiEditor.autoMsg( action.options, 'peri' ),