mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 08:14:33 +00:00
Merge "Toolbar: ignore modifications on readonly textarea"
This commit is contained in:
commit
fa63708bd5
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue