Forums / Developer / Online editor - inserting unwanted border and width attributes
Mark Irvine
Thursday 25 March 2004 3:48:03 pm
Hi,
When I create a table with the online editor I must select a border size and a width, otherwise it fills in defaults. But I only want to select a class, and control borders and width with the a css file. This is a very annoying feature of the online editor as the border and width attributes will always override whatever is in the css.
<table class='tableRed' border='1' width='100%'>
How can I stop this? I've looked in the ezeditor.js and tried removing all the occurances of 'border="' + border + '" or something similiar, but not having much success. Is there a better way to do this.
Is it something that could be addressed in any future versions of the editor...
Thanks,Mark
danny36 danny36
Tuesday 29 June 2004 1:50:27 am
any news about this???!!!
Paul Forsyth
Tuesday 29 June 2004 11:51:44 am
You can add a class in content.ini. If you look there you will find the tableRed parameter. After adding to content.ini (override it) you can then select that class in the online editor. Then add the appropriate CSS for your new class.
Does this help?
paul
--http://www.visionwt.com
Friday 02 July 2004 3:26:54 am
sorry but when I set class for table in the online editor and publish my content then whenI show my content in admin site the table have class='tableRed' properties but when I show my content in mysite the table don't have class='tableRed' properties.
what is the problem?