X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=3ce389b90ce409090676860e886e5e731265b71c;hb=367a50195cc515167fe98417d9ad5f559ff6f0d3;hp=3b3124f13e2c0b4bdc255f2dafdfdb291ca2c1ce;hpb=f88cf3bdd5f9e788a2c376c5102a2cae13683b12;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 3b3124f13e..3ce389b90c 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -21844,7 +21844,6 @@ Roo.apply(Roo.htmleditor.FilterBlock.prototype, * @constructor * @method Serializer * @param {Object} settings Name/value settings object. - * @param {tinymce.html.Schema} schema Schema instance to use. */ @@ -21854,8 +21853,7 @@ Roo.htmleditor.TidySerializer = function(settings) this.writer = new Roo.htmleditor.TidyWriter(settings); - //settings.validate = !('validate' in settings) || settings.validate; - // self.schema = schema = schema || new Schema(); + }; Roo.htmleditor.TidySerializer.prototype = { @@ -21936,38 +21934,7 @@ Roo.htmleditor.TidySerializer.prototype = { var writer = this.writer; var attrs = node.attributes; // Sort attributes - /* - if (validate && attrs && attrs.length > 1) { - sortedAttrs = []; - sortedAttrs.map = {}; - elementRule = schema.getElementRule(node.name); - if (elementRule) { - for (i = 0, l = elementRule.attributesOrder.length; i < l; i++) { - attrName = elementRule.attributesOrder[i]; - if (attrName in attrs.map) { - attrValue = attrs.map[attrName]; - sortedAttrs.map[attrName] = attrValue; - sortedAttrs.push({ - name: attrName, - value: attrValue - }); - } - } - for (i = 0, l = attrs.length; i < l; i++) { - attrName = attrs[i].name; - if (!(attrName in sortedAttrs.map)) { - attrValue = attrs.map[attrName]; - sortedAttrs.map[attrName] = attrValue; - sortedAttrs.push({ - name: attrName, - value: attrValue - }); - } - } - attrs = sortedAttrs; - } - } - */ + writer.start(node.nodeName, attrs, isEmpty, node); if (isEmpty) { return; @@ -23429,6 +23396,36 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { text : "Source: ", xns : rooui.Toolbar //Boostrap? }, + { + xtype : 'Button', + text: 'Edit Src', + + listeners : { + click: function (btn, state) + { + + + Roo.MessageBox.show({ + title : "Image Source URL", + msg : "Enter the url for the image", + buttons: this.OKCANCEL, + fn: function(val){ + block().image_src = val; + block().updateElement(); + syncValue(); + toolbar.editorcore.onEditorEvent(); + }, + minWidth:250, + prompt:true, + //multiline: multiline, + modal : true, + value : block().image_src + }); + } + }, + xns : rooui.Toolbar + }, + { xtype : 'TextField', allowBlank : false,