* Fixed bug #7525: htmlArea RTE: Page TSConfig property toggleborders.setOnTableCreat...
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 13 Feb 2008 20:07:28 +0000 (20:07 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 13 Feb 2008 20:07:28 +0000 (20:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3159 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js

index 0af3106..957f855 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2008-02-13  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Fixed bug #7232: htmlArea RTE: In IE, selecting words with CTRL+SHIFT+Left doesn't activate "link" button
+       * Fixed bug #7525: htmlArea RTE: Page TSConfig property toggleborders.setOnTableCreation not honored
 
 2008-02-13  Benjamin Mack  <mack@xnos.org>
 
index fc421f9..8c4313c 100644 (file)
@@ -1,6 +1,7 @@
 2008-02-13  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Fixed bug #7232: htmlArea RTE: In IE, selecting words with CTRL+SHIFT+Left doesn't activate "link" button
+       * Fixed bug #7525: htmlArea RTE: Page TSConfig property toggleborders.setOnTableCreation not honored
 
 2008-02-11  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
index f107e71..225b8f7 100644 (file)
@@ -550,7 +550,7 @@ TableOperations = HTMLArea.Plugin.extend({
                                this.dialogRowCellProperties(true);
                                break;
                        case "TO-toggle-borders":
-                               this.toogleBorders();
+                               this.toggleBorders();
                                break;
                        default:
                                alert("Button [" + buttonId + "] not yet implemented");
@@ -629,10 +629,13 @@ TableOperations = HTMLArea.Plugin.extend({
                }
                editor.focusEditor();
                editor.insertNodeAtSelection(table);
+               if (this.buttonsConfiguration.toggleborders && this.buttonsConfiguration.toggleborders.setOnTableCreation) {
+                       this.toggleBorders();
+               }
                return true;
        },
        
-       toogleBorders : function () {
+       toggleBorders : function () {
                var tables = this.editor._doc.getElementsByTagName("table");
                if (tables.length != 0) {
                        this.editor.borders = true;