validate : function(){
//if(this.disabled || this.validateValue(this.processValue(this.getRawValue()))){
if(this.disabled || this.validateValue(this.getRawValue())){
+ Roo.log(this.getRawValue);
+ Roo.log('MARK INVALID');
this.markValid();
return true;
}
update: function()
{
-
+ // default minute is a multiple of minuteStep
+ if(typeof(this.time) === 'undefined') {
+ 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.fill();
var cd = (e.browserEvent.clipboardData || window.clipboardData);
// check what type of paste - if it's an image, then handle it differently.
- if (cd.files && cd.files.length > 0) {
- // pasting images?
+ if (cd.files && cd.files.length > 0 && cd.types.indexOf('text/html') < 0) {
+ // pasting images?
var urlAPI = (window.createObjectURL && window) ||
(window.URL && URL.revokeObjectURL && URL) ||
(window.webkitURL && webkitURL);
if (!far.length) {
if (fire_add) {
+ this.editor.syncValue();
editor.owner.fireEvent('editorevent', editor.owner, false);
editor.owner.fireEvent('imageadd', editor.owner, false);
}
bl.image_src = reader.result;
//bl.caption = f.name;
bl.updateElement(sn);
+ this.editor.syncValue();
editor.owner.fireEvent('editorevent', editor.owner, false);
editor.owner.fireEvent('imageupdate', editor.owner, sn);
// we only do the first file!! and replace.
// just a standard img..
if (sn && sn.tagName.toUpperCase() == 'IMG') {
sn.src = reader.result;
+ this.editor.syncValue();
editor.owner.fireEvent('editorevent', editor.owner, false);
editor.owner.fireEvent('imageupdate', editor.owner, sn);
return;
selection.addRange(range);
this.updateToolbar(null, null, null);
if (sn.tagName.toUpperCase() == 'FIGURE') {
+ this.editor.syncValue();
this.editor.fireEvent('imagedelete', this.editor, sn);
}
selection.removeAllRanges();
selection.addRange(range);
if (sn.tagName.toUpperCase() == 'IMG"') {
+ this.editor.syncValue();
this.editor.fireEvent('imagedelete', this.editor, sn);
}