#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: |
Description
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 += ">"; if(argument.caption){table+='<caption>'+argument.caption+'</caption>';} 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 16 years ago by
Owner: | changed from bill to liucougar |
---|
comment:2 Changed 16 years ago by
Status: | new → assigned |
---|
comment:3 Changed 16 years ago by
as none-activex mode IE does not have a usable undo support yet, so I do not invest time to support it
Note: See
TracTickets for help on using
tickets.
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