Fixed #854: IE fix for ckeditor's plugin insertpre:

Removed 'class' attribute to fix viw in IE8+.
Use monospace in insertpre dialog in IE.
Updated German translation file.
This commit is contained in:
Emanuel Schuetze 2013-08-29 11:45:48 +02:00
parent d75b8ea1f9
commit ec61bd8cdc
3 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
CKEDITOR.plugins.setLang( 'insertpre', 'de', { CKEDITOR.plugins.setLang( 'insertpre', 'de', {
title : 'Blocksatz-Text eingeben', title : 'Text mit fester Laufweite eingeben',
code : 'Blocksatz', code : 'Text',
edit : 'Text bearbeiten', edit : 'Text bearbeiten',
notEmpty : 'Das Textfeld darf nicht leer bleiben.' notEmpty : 'Das Textfeld darf nicht leer bleiben.'
}); });

View File

@ -54,8 +54,8 @@ CKEDITOR.plugins.add( 'insertpre',
{ {
return { return {
title : editor.lang.insertpre.title, title : editor.lang.insertpre.title,
minWidth : 540, minWidth : 400,
minHeight : 380, minHeight : 200,
contents : [ contents : [
{ {
id : 'general', id : 'general',
@ -65,10 +65,8 @@ CKEDITOR.plugins.add( 'insertpre',
type : 'textarea', type : 'textarea',
id : 'contents', id : 'contents',
label : editor.lang.insertpre.code, label : editor.lang.insertpre.code,
cols: 140, cols: 80,
rows: 22, rows: 13,
class: "blocksize",
style: "font-family: Courier;",
validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.insertpre.notEmpty ), validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.insertpre.notEmpty ),
required : true, required : true,
setup : function( element ) setup : function( element )

View File

@ -103,4 +103,7 @@ body.ckeditor_html
background-color: Yellow; background-color: Yellow;
} }
.cke_dialog_contents textarea.blocksize { font-family: Courier; font-size: 14px; } .cke_dialog_contents textarea {
font-family: Courier New, monospace;
font-size: 14px;
}