suneditor 2.47.0 → 2.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/suneditor.min.js +2 -2
- package/package.json +1 -1
- package/src/lib/constructor.js +2 -0
- package/src/lib/core.js +69 -32
- package/src/lib/util.js +1 -1
- package/src/options.d.ts +12 -0
- package/src/plugins/dialog/image.js +2 -1
- package/src/plugins/fileBrowser/imageGallery.js +2 -1
- package/src/plugins/modules/fileBrowser.js +5 -1
- package/src/plugins/submenu/list.js +1 -1
- package/src/plugins/dialog/mention.d.ts +0 -5
- package/src/plugins/dialog/mention.js +0 -242
package/README.md
CHANGED
|
@@ -392,6 +392,7 @@ plugins: [
|
|
|
392
392
|
|
|
393
393
|
// Values
|
|
394
394
|
strictMode : Option to disable clean mode, which checks the styles, classes, etc. of the editor content. default : false {Boolean}
|
|
395
|
+
strictHTMLValidation : Enforces strict HTML validation based on the editor`s policy. Applies to methods like setContents to ensure content compliance when enabled. default: false {Boolean}
|
|
395
396
|
lang : language object. default : en {Object}
|
|
396
397
|
defaultTag : Specifies default tag name of the editor. default: 'p' {String}
|
|
397
398
|
textTags : You can change the tag of the default text button. default: { bold: 'STRONG', underline: 'U', italic: 'EM', strike: 'DEL' }
|
|
@@ -692,6 +693,16 @@ imageMultipleFile: If true, multiple images can be selected. default: false {
|
|
|
692
693
|
imageAccept : Define the "accept" attribute of the input. default: "*" {String}
|
|
693
694
|
ex) "*" or ".jpg, .png .."
|
|
694
695
|
// Image - image gallery
|
|
696
|
+
imageGalleryData : Direct JSON data without making server requests. default: null {Array}
|
|
697
|
+
ex) [
|
|
698
|
+
{
|
|
699
|
+
"src": "/download/editorImg/test_image.jpg", // @Require
|
|
700
|
+
"thumbnail": "/download/editorImg/test_thumbnail.jpg", // @Option - Thumbnail image to be displayed in the image gallery.
|
|
701
|
+
"name": "Test image", // @Option - default: src.split('/').pop()
|
|
702
|
+
"alt": "Alt text", // @Option - default: src.split('/').pop()
|
|
703
|
+
"tag": "Tag name" // @Option
|
|
704
|
+
}
|
|
705
|
+
]
|
|
695
706
|
imageGalleryUrl : The url of the image gallery, if you use the image gallery.
|
|
696
707
|
When "imageUrlInput" is true, an image gallery button is created in the image modal.
|
|
697
708
|
You can also use it by adding "imageGallery" to the button list. default: null {String}
|