suneditor
Advanced tools
Comparing version 2.47.0 to 2.47.1
{ | ||
"name": "suneditor", | ||
"version": "2.47.0", | ||
"version": "2.47.1", | ||
"description": "Vanilla javascript based WYSIWYG web editor, with no dependencies", | ||
@@ -5,0 +5,0 @@ "author": "JiHong.Lee", |
@@ -419,2 +419,3 @@ /* | ||
options.strictMode = options.strictMode !== false; | ||
options.strictHTMLValidation = options.strictHTMLValidation === true; | ||
options.lang = options.lang || _defaultLang; | ||
@@ -546,2 +547,3 @@ options.value = typeof options.value === 'string' ? options.value : null; | ||
/** Image - image gallery */ | ||
options.imageGalleryData = options.imageGalleryData || null; | ||
options.imageGalleryUrl = typeof options.imageGalleryUrl === 'string' ? options.imageGalleryUrl : null; | ||
@@ -548,0 +550,0 @@ options.imageGalleryHeader = options.imageGalleryHeader || null; |
@@ -7,2 +7,10 @@ import { Lang } from './lang/Lang'; | ||
/** | ||
* Option to disable clean mode, which checks the styles, classes, etc. of the editor content | ||
*/ | ||
strictMode?: boolean; | ||
/** | ||
* Enforces strict HTML validation based on the editor`s policy. Applies to methods like setContents to ensure content compliance when enabled. | ||
*/ | ||
strictHTMLValidation?: boolean; | ||
/** | ||
* Values | ||
@@ -360,2 +368,6 @@ * ====== | ||
/** | ||
* Direct JSON data without making server requests. | ||
*/ | ||
imageGalleryData?: Array; | ||
/** | ||
* The url of the image gallery, if you use the image gallery | ||
@@ -362,0 +374,0 @@ */ |
@@ -687,3 +687,3 @@ /* | ||
oImg.onload = imagePlugin._image_create_onload.bind(this, oImg, contextImage.svgDefaultSize, container); | ||
if (this.insertComponent(container, true, true, true)) this.plugins.fileManager.setInfo.call(this, 'image', oImg, this.functions.onImageUpload, file, true); | ||
if (this.insertComponent(container, true, true, !this.options.mediaAutoSelect)) this.plugins.fileManager.setInfo.call(this, 'image', oImg, this.functions.onImageUpload, file, true); | ||
this.context.resizing._resize_plugin = ''; | ||
@@ -701,2 +701,3 @@ }, | ||
} | ||
this.history.push(false); | ||
}, | ||
@@ -703,0 +704,0 @@ |
@@ -24,3 +24,4 @@ /* | ||
title: core.lang.toolbar.imageGallery, // @Required @Override fileBrowser - File browser window title. | ||
url: core.options.imageGalleryUrl, // @Required @Override fileBrowser - File server url. | ||
directData: core.options.imageGalleryData, // @option @Override fileBrowser - Direct JSON data without making server requests. | ||
url: core.options.imageGalleryUrl, // @option @Override fileBrowser - File server url. | ||
header: core.options.imageGalleryHeader, // @Required @Override fileBrowser - File server http header. | ||
@@ -27,0 +28,0 @@ listClass: 'se-image-list', // @Required @Override fileBrowser - Class name of list div. |
@@ -165,3 +165,7 @@ /* | ||
this.plugins.fileBrowser._drawFileList.call(this, this.context[pluginName].url, this.context[pluginName].header); | ||
if (this.context[pluginName].directData) { | ||
this.plugins.fileBrowser._drawListItem.call(this, this.context[pluginName].directData, true); | ||
} else { | ||
this.plugins.fileBrowser._drawFileList.call(this, this.context[pluginName].url, this.context[pluginName].header); | ||
} | ||
}, | ||
@@ -168,0 +172,0 @@ |
@@ -289,3 +289,3 @@ /* | ||
this.effectNode = null; | ||
return !isCollapsed ? originRange : afterRange; | ||
return !isCollapsed ? originRange : afterRange || originRange; | ||
}, | ||
@@ -292,0 +292,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
4105623
1614
138
29698
1