X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_form_HtmlEditorToolbar_Standard.js.html;h=24907cd45b479c150fff9ae83deae1b3307d77a5;hp=b7c7727a73a611351005b9c64d49220f47a8a20d;hb=248c5cdd0fe1c3012360d530f5fd34ef516a79fb;hpb=294c1708f3cd12ae21ec2af334dd2602b60ef917 diff --git a/docs/src/Roo_bootstrap_form_HtmlEditorToolbar_Standard.js.html b/docs/src/Roo_bootstrap_form_HtmlEditorToolbar_Standard.js.html index b7c7727a73..24907cd45b 100644 --- a/docs/src/Roo_bootstrap_form_HtmlEditorToolbar_Standard.js.html +++ b/docs/src/Roo_bootstrap_form_HtmlEditorToolbar_Standard.js.html @@ -90,6 +90,7 @@ //glyphicon : id, btnid : id, fa: id, + cls : 'roo-html-editor-btn-' + id, cmd : cmd, // why id || cmd enableToggle: toggle !== false, html : html || '', @@ -110,6 +111,7 @@ size : 'sm', xns: Roo.bootstrap, fa : 'font', + cls : 'roo-html-editor-font-chooser', //html : 'submit' menu : { xtype: 'Menu', @@ -137,6 +139,7 @@ btn('bold', false,true); btn('italic', false,true); + btn('underline', false,true); btn('align-left', 'justifyleft',true); btn('align-center', 'justifycenter',true); btn('align-right' , 'justifyright',true); @@ -185,8 +188,7 @@ size : 'sm', xtype: 'Button', xns: Roo.bootstrap, - fa: 'eraser', - tooltip : "Clear Formating / Delete", + fa: 'trash', listeners : { click : this.onDelete.createDelegate(this) } @@ -329,7 +331,7 @@ var hasToggle = false; btns.each(function(e) { if (e.enableToggle && e.cmd) { - hasToggle = hasToggle || (['align-left', 'align-right', 'align-center'].indexOf(e.btnid) < 0 && doc.queryCommandState(e.cmd)); + hasToggle = hasToggle || (['align-left', 'align-right', 'align-center', 'image' , 'link'].indexOf(e.btnid) < 0 && doc.queryCommandState(e.cmd)); e.setActive(doc.queryCommandState(e.cmd)); } }, this); @@ -390,7 +392,7 @@ } btns.get('link').setActive(tn == 'A' && this.selectedNode.hasAttribute('href')); - + btns.get('image').setActive(tn == 'IMG' || this.editorcore.enableBlocks && tn == 'FIGURE'); Roo.bootstrap.menu.Manager.hideAll();