Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#1280 closed enhancement (fixed)

inserttable improvements

Reported by: b at cce dot ac dot nz Owned by: liucougar
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


inserttable improvements for Richtext.js in execCommand() (non-ActiveX version). Tested on IE and gecko. Supports attributes and caption.

			}else if(command == "inserttable") {
				var cols = "<tr>";
				for (var i = 0; i < argument.cols; i++) { cols += "<td></td>"; }
				cols += "</tr>";
				var table = "<table";
				for (field in argument.TableAttrs) {
					table +=' '+field+'="'+argument.TableAttrs[field]+'"';
				table += ">";
				table += "<tbody>";
				for (var i = 0; i < argument.rows; i++) { table += cols; }
				table += "</tbody></table>";
				returnValue = this.execCommand("inserthtml", table);

-=Bruce Webster (dojo CLA signatory)

Change History (5)

comment:1 Changed 15 years ago by liucougar

Owner: changed from bill to liucougar

comment:2 Changed 15 years ago by liucougar

Status: newassigned

I already implemented this for IE (activeX mode) and FF, both with full undo support

they will be available when I commit my changes to svn

comment:3 Changed 15 years ago by liucougar

as none-activex mode IE does not have a usable undo support yet, so I do not invest time to support it

comment:4 Changed 15 years ago by liucougar

Resolution: fixed
Status: assignedclosed

committed in r5306

comment:5 Changed 14 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.