From 25d3c3409bdf9693afa326e8b5123bba93a962ba Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 20 Dec 2019 10:48:28 +0800 Subject: [PATCH] Changed roojs-ui-debug.jsroojs-ui.js --- roojs-ui-debug.js | 3 ++- roojs-ui.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index ac8135fe14..55ab9f1b5b 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -22942,7 +22942,8 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, { ["h1"],["h2"],["h3"],["h4"],["h5"],["h6"], ["pre"],[ "code"], ["abbr"],[ "acronym"],[ "address"],[ "cite"],[ "samp"],[ "var"], - ['div'],['span'] + ['div'],['span'], + ['sup'],['sub'] ], cleanStyles : [ diff --git a/roojs-ui.js b/roojs-ui.js index 0cd0beee18..a35e2e7e0a 100644 --- a/roojs-ui.js +++ b/roojs-ui.js @@ -991,7 +991,7 @@ for(var i=0;iCell'} -,{text:"Insert Image",xtype:'MenuItem',xns:Roo.Menu,ihtml:''}],inputElements:["form","input:text","input:hidden","input:checkbox","input:radio","input:password","input:submit","input:button","select","textarea","label"],formats:[["p"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["pre"],["code"],["abbr"],["acronym"],["address"],["cite"],["samp"],["var"],['div'],['span']],cleanStyles:["font-size"],defaultFont:'tahoma',fontSelect:false,formatCombo:false,init:function(A){this.editor=A; +,{text:"Insert Image",xtype:'MenuItem',xns:Roo.Menu,ihtml:''}],inputElements:["form","input:text","input:hidden","input:checkbox","input:radio","input:password","input:submit","input:button","select","textarea","label"],formats:[["p"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["pre"],["code"],["abbr"],["acronym"],["address"],["cite"],["samp"],["var"],['div'],['span'],['sup'],['sub']],cleanStyles:["font-size"],defaultFont:'tahoma',fontSelect:false,formatCombo:false,init:function(A){this.editor=A; this.editorcore=A.editorcore?A.editorcore:A;var B=this.editorcore;var _t=this;var C=B.frameId;var D=this;function btn(id,H,I){var J=C+'-'+id;return {id:J,cmd:id,cls:'x-btn-icon x-edit-'+id,enableToggle:H!==false,scope:_t,handler:I||_t.relayBtnCmd,clickEvent:'mousedown',tooltip:D.buttonTips[id]||undefined,tabIndex:-1} ;}var tb=new Roo.Toolbar(A.wrap.dom.firstChild);this.tb=tb;tb.el.on('click',function(e){e.preventDefault();});if(!this.disable.font){};if(!this.disable.formats){this.formatCombo=new Roo.form.ComboBox({store:new Roo.data.SimpleStore({id:'tag',fields:['tag'],data:this.formats} ),blockFocus:true,name:'',displayField:'tag',typeAhead:false,mode:'local',editable:false,triggerAction:'all',emptyText:'Add tag',selectOnFocus:true,width:135,listeners:{'select':function(c,r,i){B.insertTag(r.get('tag'));A.focus();}}});tb.addField(this.formatCombo); -- 2.39.2