Online editor - inserting unwanted border and width attributes

Author Message

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

danny36 danny36

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 when
I 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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:10:02
Script start
Timing: Jan 18 2025 21:10:02
Module start 'layout'
Timing: Jan 18 2025 21:10:02
Module start 'content'
Timing: Jan 18 2025 21:10:02
Module end 'content'
Timing: Jan 18 2025 21:10:02
Script end

Main resources:

Total runtime0.9056 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1719152.6563
Module start 'layout' 0.00560.0153 740.828139.5078
Module start 'content' 0.02090.8832 780.3359546.7656
Module end 'content' 0.90410.0015 1,327.101612.4063
Script end 0.9056  1,339.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3953160.0002
Check MTime0.00160.1805160.0001
Mysql Total
Database connection0.00100.107510.0010
Mysqli_queries0.831491.8038620.0134
Looping result0.00060.0647600.0000
Template Total0.843893.220.4219
Template load0.00220.241020.0011
Template processing0.841792.936720.4208
Template load and register function0.00020.016910.0002
states
state_id_array0.00180.198610.0018
state_identifier_array0.00180.199920.0009
Override
Cache load0.00180.2030240.0001
Sytem overhead
Fetch class attribute can translate value0.00040.048430.0001
Fetch class attribute name0.00120.133650.0002
XML
Image XML parsing0.00060.069630.0002
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00070.0773160.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs