suneditor
Advanced tools
Comparing version 2.44.10 to 2.44.11
{ | ||
"name": "suneditor", | ||
"version": "2.44.10", | ||
"version": "2.44.11", | ||
"description": "Pure JavaScript based WYSIWYG web editor", | ||
@@ -5,0 +5,0 @@ "author": "JiHong.Lee", |
@@ -104,3 +104,3 @@ /* | ||
videoBox: { | ||
title: 'Video enfügen', | ||
title: 'Video einfügen', | ||
file: 'Datei auswählen', | ||
@@ -110,3 +110,3 @@ url: 'Video-URL, YouTube/Vimeo' | ||
audioBox: { | ||
title: 'Audio enfügen', | ||
title: 'Audio einfügen', | ||
file: 'Datei auswählen', | ||
@@ -190,2 +190,2 @@ url: 'Audio-URL' | ||
return lang; | ||
})); | ||
})); |
@@ -56,3 +56,3 @@ /* | ||
core._checkComponents(); | ||
const current = core.getContents(true); | ||
const current = editor.wysiwyg.innerHTML; | ||
if (!current || (!!stack[stackIndex] && current === stack[stackIndex].contents)) return; | ||
@@ -59,0 +59,0 @@ |
@@ -663,3 +663,2 @@ /* | ||
contextImage._caption = this.plugins.component.create_caption.call(this); | ||
contextImage._caption.setAttribute('contenteditable', false); | ||
cover.appendChild(contextImage._caption); | ||
@@ -873,3 +872,3 @@ } | ||
contextImage._caption = this.util.getChildElement(contextImage._cover, 'FIGCAPTION'); | ||
contextImage._align = element.style.float || element.getAttribute('data-align') || 'none'; | ||
contextImage._align = element.getAttribute('data-align') || element.style.float || 'none'; | ||
element.style.float = ''; | ||
@@ -1073,8 +1072,2 @@ this.plugins.anchor.setCtx(contextImage._linkElement, contextImage.anchorCtx); | ||
if (align && align !== 'none') { | ||
cover.style.margin = 'auto'; | ||
} else { | ||
cover.style.margin = '0'; | ||
} | ||
if (/%$/.test(element.style.width) && align === 'center') { | ||
@@ -1081,0 +1074,0 @@ container.style.minWidth = '100%'; |
@@ -138,2 +138,3 @@ 'use strict'; | ||
element.innerHTML = dom.querySelector('.katex').innerHTML; | ||
element.setAttribute('contenteditable', false); | ||
} | ||
@@ -140,0 +141,0 @@ }; |
@@ -934,8 +934,2 @@ /* | ||
if (align && align !== 'none') { | ||
cover.style.margin = 'auto'; | ||
} else { | ||
cover.style.margin = '0'; | ||
} | ||
if (/%$/.test(element.style.width) && align === 'center') { | ||
@@ -942,0 +936,0 @@ container.style.minWidth = '100%'; |
@@ -58,5 +58,5 @@ /* | ||
setImage: function (target) { | ||
setImage: function (target, fileName) { | ||
this.callPlugin('image', function () { | ||
const file = {name: target.parentNode.querySelector('.__se__img_name').textContent, size: 0}; | ||
const file = {name: fileName, size: 0}; | ||
this.plugins.image.create_image.call(this, target.getAttribute('data-value'), null, this.context.image._origin_w, this.context.image._origin_h, 'none', file, target.alt); | ||
@@ -63,0 +63,0 @@ }.bind(this), null); |
@@ -35,3 +35,2 @@ /* | ||
container.className = 'se-component ' + className; | ||
container.setAttribute('contenteditable', false); | ||
container.appendChild(cover); | ||
@@ -59,3 +58,2 @@ | ||
const caption = this.util.createElement('FIGCAPTION'); | ||
caption.setAttribute('contenteditable', true); | ||
caption.innerHTML = '<div>' + this.lang.dialogBox.caption + '</div>'; | ||
@@ -62,0 +60,0 @@ return caption; |
@@ -350,4 +350,4 @@ /* | ||
const handler = (fileBrowserContext.selectorHandler || this.context[fileBrowserContext.contextPlugin].selectorHandler); | ||
handler(target, target.parentNode.querySelector('.__se__img_name').textContent); | ||
this.plugins.fileBrowser.close.call(this); | ||
handler(target); | ||
} | ||
@@ -354,0 +354,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4023931
28887