suneditor
Advanced tools
Comparing version 1.6.1 to 1.6.2
{ | ||
"name": "suneditor", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Pure JavaScript based WYSIWYG web editor", | ||
@@ -5,0 +5,0 @@ "main": "src/suneditor.js", |
{ | ||
"name": "suneditor", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Pure JavaScript based WYSIWYG web editor", | ||
@@ -5,0 +5,0 @@ "main": "src/suneditor.js", |
@@ -162,3 +162,3 @@ /* | ||
this.context.link.linkNewWindowCheck.checked = (/_blank/i.test(this.context.link._linkAnchor.target) ? true : false); | ||
SUNEDITOR.plugin.dialog.openDialog.call(this, 'link', true); | ||
SUNEDITOR.plugin.dialog.openDialog.call(this, 'link', null, true); | ||
} | ||
@@ -165,0 +165,0 @@ else { |
@@ -51,3 +51,3 @@ "undefined"===typeof window.SUNEDITOR&&(window.SUNEDITOR={},SUNEDITOR.plugin={}); | ||
!1},touchmove_toolbar:function(){c._variable.isTouchMove=!0},onClick_toolbar:function(b){if(c._variable.isTouchMove)return!0;for(var g=b.target,f=g.getAttribute("data-display"),e=g.getAttribute("data-command"),k=g.className;!e&&!/editor_tool/.test(k)&&!/sun-editor-id-toolbar/.test(k);)g=g.parentNode,e=g.getAttribute("data-command"),f=g.getAttribute("data-display"),k=g.className;if(!e&&!f)return!0;b.preventDefault();b.stopPropagation();c.focus();if(f)b=c.submenu,c.submenuOff(),!/submenu/.test(f)|| | ||
null!==g.nextElementSibling&&g.nextElementSibling===b?/dialog/.test(f)&&c.callModule("dialog",e,null,function(){SUNEDITOR.plugin.dialog.openDialog.call(c,e,g.getAttribute("data-option"))}):c.callModule("submenu",e,g,function(){c.submenuOn(g)});else{if(e)switch(f=g.getAttribute("data-value"),e){case "codeView":c.toggleFrame();d.toggleClass(g,"on");break;case "fullScreen":c.toggleFullScreen(g);d.toggleClass(g,"on");break;case "indent":case "outdent":c.indent(c._variable.selectionNode,e);break;case "redo":case "undo":case "removeFormat":c.execCommand(e, | ||
null!==g.nextElementSibling&&g.nextElementSibling===b?/dialog/.test(f)&&c.callModule("dialog",e,null,function(){SUNEDITOR.plugin.dialog.openDialog.call(c,e,g.getAttribute("data-option"),!1)}):c.callModule("submenu",e,g,function(){c.submenuOn(g)});else{if(e)switch(f=g.getAttribute("data-value"),e){case "codeView":c.toggleFrame();d.toggleClass(g,"on");break;case "fullScreen":c.toggleFullScreen(g);d.toggleClass(g,"on");break;case "indent":case "outdent":c.indent(c._variable.selectionNode,e);break;case "redo":case "undo":case "removeFormat":c.execCommand(e, | ||
!1,null);break;case "preview":c.preview();break;case "print":a.element.wysiwygWindow.print();break;default:c.execCommand(e,!1,f),d.toggleClass(g,"on")}c.submenuOff()}},onMouseUp_wysiwyg:function(a){a.stopPropagation();c._setSelectionNode();var b=a.target;c.submenuOff();/^HTML$/i.test(b.nodeName)?(a.preventDefault(),c.focus()):/^IMG$/i.test(b.nodeName)?(a.preventDefault(),c.callModule("dialog","image",null,function(){SUNEDITOR.plugin.image.call_controller_imageResize.call(c,b)})):f._findButtonEffectTag()}, | ||
@@ -54,0 +54,0 @@ onKeyDown_wysiwyg:function(b){c._setSelectionNode();var g=b.keyCode,e=b.shiftKey,v=b.ctrlKey||b.metaKey,k=b.altKey;b.stopPropagation();if(v&&!/^(?:16|17|18)$/.test(g)){var m;if(m=!(e&&83!==g))(m=f._shortcutKeyCode[g])?(c.execCommand(m[0],!1,null),d.toggleClass(c.commandMap[m[1]],"on"),m=!0):m=!1;if(m){b.preventDefault();return}}switch(g){case 8:if(/^P$/i.test(c._variable.selectionNode.tagName)&&null===c._variable.selectionNode.previousSibling)return b.preventDefault(),!1;break;case 9:if(b.preventDefault(), |
Sorry, the diff of this file is too big to display
2010495