fix #7775 - BlockFigure caption_edit option - to enable/disable caption editing
[roojs1] / roojs-bootstrap-debug.js
index 61f231c..ad2af78 100644 (file)
@@ -23032,7 +23032,7 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input,  {
             }
 
             translation.months.push(month);
-            translation/monthsShort.push(monthShort);
+            translation.monthsShort.push(monthShort);
         }
     },
         
@@ -24355,11 +24355,11 @@ Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input,  {
     update: function()
     {
         // default minute is a multiple of minuteStep
-        if(typeof(this.time) === 'undefined') {
+        if(typeof(this.time) === 'undefined' || this.time.length == 0) {
             this.time = new Date();
             this.time = this.time.add(Date.MINUTE, Math.round(parseInt(this.time.format('i')) / this.minuteStep) * this.minuteStep - parseInt(this.time.format('i')));
         }
-        this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
+        this.time = (typeof(this.time) === 'undefined' || this.time.length == 0) ? new Date() : this.time;
         
         this.fill();
     },
@@ -29751,7 +29751,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                                 {
                                     // we can not rely on yahoo syndication to use CSS elements - so have to use  '<i>' to encase stuff.
                                     tag : 'i',
-                                    contenteditable : true,
+                                    contenteditable : Roo.htmleditor.BlockFigure.caption_edit,
                                     html : captionhtml
                                 }
                                 
@@ -29808,7 +29808,11 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
     
     
     
-})
+});
+
+Roo.apply(Roo.htmleditor.BlockFigure, {
+    caption_edit : true
+});