Is it possible to change the default values in the dialog boxes?
e.g. when adding new table, the width is automatically set to 200 pixels. I'd like this to be 100% by default. Can I do this?
e.g. when adding new table, the width is automatically set to 200 pixels. I'd like this to be 100% by default. Can I do this?
Re: Change default values in dialogs?
We want to do exactly the same thing (set the default from 200 px to 100%). I was wondering if you have solved this problem. And if so, if you'd care to share the solution with us.
Re: Change default values in dialogs?
my solution: open
ckeditor/plugins/table/dialogs/table.js with an editor (notepad++ …).
Search for the default value:
label : e.lang.table.width,'default' : 200,
change 200 to eg. 100
second change the unit form pixel to %, therefor search for:
id : 'cmbWidthType',type : 'select',label : e.lang.table.widthUnit,labelStyle : 'visibility:hidden','default' : 'pixels',
^ change the default from pixel to %: default' : '%',
In versions older than 3.3.1 the string is different:
id : 'cmbWidthType',type : 'select',label : ' ','default' : 'pixels',