btn('align-right' , 'justifyright',true);
btn('link', false, true, function(btn) {
- var url = prompt(this.createLinkText, this.defaultLinkValue);
- if(url && url != 'http:/'+'/'){
- this.editorcore.relayCmd('createlink', url);
- }
- }),
+ Roo.bootstrap.MessageBox.prompt(
+ "Add / Edit Link URL",
+ "Enter the URL for the link",
+ function(pressed, url) {
+ if (pressed != 'ok') {
+ return;
+ }
+
+ if(url && url.match(/http(s):\/\/.+/)) {
+ this.editorcore.relayCmd('createlink', url);
+ }
+ }
+ );
+ });
btn('list','insertunorderedlist',true);
btn('list-ol','insertorderedlist',true);
Roo.bootstrap.menu.Manager.hideAll();
+
+
+ Array.from(this.editorcore.doc.body.querySelectorAll('.roo-ed-selection')).forEach(function(e) {
+ e.classList.remove('roo-ed-selection');
+ });
+
+
// handle delete button..
if (hasToggle || (tn.length && tn == 'BODY')) {
this.deleteBtn.hide();