Opened 13 years ago

Closed 21 months ago

#1008 closed enhancement (invalid)

Table Properties unintentionally changes table borders (frames)

Reported by: romus Owned by: gogo
Priority: low Milestone:
Component: Plugin_TableOperations Version: trunk
Severity: normal Keywords: table operations, properties, border, rules, frame
Cc:

Description

When inserting new table, tag and attributies looks like:

<table cellspacing="1" cellpadding="1" border="1" style="width: 100%;">

when next use Table Properties and without any change in it apply default settings, table attributies are a bit different (this from Firefox, IE produce a little more, but in CSS meaning is the same):

<table rules="none" frame="void" cellspacing="1" cellpadding="1" border="1" style="border-style: none; width: 100%; float: none; background-image: none;">

The key role plays attributies: rules="none", frame="void" and declaration border-style: none;


Quick and dirty solution to this: in Table Properties add empty values in selects to the above attributies - diff on table-operations.js (version 719 2007-02-08 17:42:35Z htanaka):

242a243
>                 <option value=''" + selected(f_frames == "") + "></option> \
257a259
>                 <option value=''" + selected(f_rules == "") + "></option> \
1096c1098
< 	options = ["none", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
---
> 	options = ["", "none", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];

Attachments (1)

table-operations.js (39.4 KB) - added by romus 13 years ago.
Script with modified Table Properties

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by romus

Script with modified Table Properties

comment:1 Changed 21 months ago by gogo

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.