X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fforms%2Fplugin.js;h=7d8ea4591250846824f3c3ed1680020b5a056e1c;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=fcf639cb687cfa6cdad18dec3e901fbe005a5d80;hpb=f8fc585c18d287eb325c575596d183122486b641;p=ckeditor.git diff --git a/_source/plugins/forms/plugin.js b/_source/plugins/forms/plugin.js index fcf639c..7d8ea45 100644 --- a/_source/plugins/forms/plugin.js +++ b/_source/plugins/forms/plugin.js @@ -27,8 +27,8 @@ CKEDITOR.plugins.add( 'forms', 'background-position: center center;' + 'background-repeat: no-repeat;' + 'border: 1px solid #a9a9a9;' + - 'width: 16px;' + - 'height: 16px;' + + 'width: 16px !important;' + + 'height: 16px !important;' + '}' ); // All buttons use the same code to register. So, to avoid @@ -131,13 +131,13 @@ CKEDITOR.plugins.add( 'forms', { editor.contextMenu.addListener( function( element ) { - if ( element && element.hasAscendant( 'form', true ) ) + if ( element && element.hasAscendant( 'form', true ) && !element.isReadOnly() ) return { form : CKEDITOR.TRISTATE_OFF }; }); editor.contextMenu.addListener( function( element ) { - if ( element ) + if ( element && !element.isReadOnly() ) { var name = element.getName();