suneditor 2.47.7 → 2.47.9
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 -11
- package/dist/suneditor.min.js +2 -2
- package/package.json +13 -2
- package/src/lang/pt_br.js +9 -9
- package/src/lib/core.js +93 -19
- package/src/options.d.ts +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ Coded based on ES5 in supported by IE11.
|
|
|
5
5
|
|
|
6
6
|
> **⚠️ SunEditor 3.0.0 Released!**
|
|
7
7
|
> The latest version **3.x** is now available with major improvements.
|
|
8
|
-
>
|
|
8
|
+
> see [suneditor-v3](https://github.com/JiHong88/suneditor).
|
|
9
9
|
|
|
10
|
-
#### Demo : <a href="
|
|
10
|
+
#### Demo : <a href="https://legacy.suneditor.com" target="_blank">suneditor.com</a>
|
|
11
11
|
|
|
12
12
|
[](https://github.com/JiHong88/SunEditor/blob/master/LICENSE.txt)
|
|
13
13
|
[](https://github.com/JiHong88/SunEditor/releases)
|
|
@@ -24,7 +24,7 @@ Coded based on ES5 in supported by IE11.
|
|
|
24
24
|
> - Can use CodeMirror, KaTeX.
|
|
25
25
|
> - And.. many other features :)
|
|
26
26
|
|
|
27
|
-

|
|
28
28
|
|
|
29
29
|
## Table of contents
|
|
30
30
|
- [Browser Support](#browser-support)
|
|
@@ -57,7 +57,7 @@ Coded based on ES5 in supported by IE11.
|
|
|
57
57
|
|
|
58
58
|
#### Browser Support
|
|
59
59
|
|
|
60
|
-
| <img src="
|
|
60
|
+
| <img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/chrome-64.png" alt="Chrome" width="16px" height="16px" /> Chrome | <img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/mozilla-64.png" alt="Firefox" width="16px" height="16px" /> Firefox | <img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/opera-64.png" alt="Opera" width="16px" height="16px" /> Opera | <img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/safari-64.png" alt="Safari" width="16px" height="16px" /> Safari | <img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/edge-64.png" alt="Edge" width="16px" height="16px" /> Edge | <img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/explorer-64.png" alt="Explorer" width="16px" height="16px" /> Internet Explorer |
|
|
61
61
|
|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
62
62
|
| Yes | Yes | Yes | Yes | Yes | 11+ |
|
|
63
63
|
|
|
@@ -471,7 +471,7 @@ iframeCSSFileName : Name or Array of the CSS file to apply inside the iframe.
|
|
|
471
471
|
You can also use regular expressions.
|
|
472
472
|
Applied by searching by filename in the link tag of document,
|
|
473
473
|
or put the URL value (".css" can be omitted). default: 'suneditor' {Array|String}
|
|
474
|
-
ex) '.+' or ['suneditor', '
|
|
474
|
+
ex) '.+' or ['suneditor', 'https://legacy.suneditor.com/sample/css/sample.css', '.+\\.min\\.css']
|
|
475
475
|
previewTemplate : A template of the "preview".
|
|
476
476
|
The {{contents}} part in the HTML string is replaced with the contents of the editor. default: null {String}
|
|
477
477
|
ex) "<div style='width:auto; max-width:1080px; margin:auto;'><h1>Preview Template</h1> {{contents}} <div>_Footer_</div></div>"
|
|
@@ -784,7 +784,7 @@ videoUploadSizeLimit: The size of the total uploadable videos (in bytes).
|
|
|
784
784
|
Invokes the "onVideoUploadError" method. default: null {Number}
|
|
785
785
|
videoMultipleFile: If true, multiple videos can be selected. default: false {Boolean}
|
|
786
786
|
videoTagAttrs : Define "Attributes" of the video tag. default: null {Object}
|
|
787
|
-
ex) { poster: "
|
|
787
|
+
ex) { poster: "https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/loading.gif", autoplay: true }
|
|
788
788
|
videoIframeAttrs : Define "Attributes" of the iframe tag. (Youtube, Vimeo). default: null {Object}
|
|
789
789
|
ex) { style: "border: 2px solid red;" }
|
|
790
790
|
videoAccept : Define the "accept" attribute of the input. default: "*" {String}
|
|
@@ -1109,7 +1109,7 @@ editor.insertImage(FileList);
|
|
|
1109
1109
|
* @param {Boolean} notCleaningData If true, inserts the HTML string without refining it with core.cleanHTML.
|
|
1110
1110
|
* @param {Boolean} checkCharCount If true, if "options.maxCharCount" is exceeded when "element" is added, null is returned without addition.
|
|
1111
1111
|
*/
|
|
1112
|
-
editor.insertHTML('<img src="
|
|
1112
|
+
editor.insertHTML('<img src="https://suneditor-files.s3.ap-northeast-2.amazonaws.com/sample/v2/docs/ara.jpg">', true, true);
|
|
1113
1113
|
|
|
1114
1114
|
// Change the contents of the suneditor
|
|
1115
1115
|
editor.setContents('set contents');
|
|
@@ -1592,16 +1592,16 @@ editor.showController = function (name, controllers, core) {
|
|
|
1592
1592
|
</table>
|
|
1593
1593
|
|
|
1594
1594
|
## Examples
|
|
1595
|
-
[Examples](
|
|
1595
|
+
[Examples](https://legacy.suneditor.com/sample/html/examples.html)
|
|
1596
1596
|
|
|
1597
1597
|
## Options template
|
|
1598
|
-
[Options template](
|
|
1598
|
+
[Options template](https://legacy.suneditor.com/sample/html/options.html)
|
|
1599
1599
|
|
|
1600
1600
|
## Custom plugins
|
|
1601
|
-
[Custom plugins](
|
|
1601
|
+
[Custom plugins](https://legacy.suneditor.com/sample/html/customPlugins.html)
|
|
1602
1602
|
|
|
1603
1603
|
## Document
|
|
1604
|
-
[Document](
|
|
1604
|
+
[Document](https://legacy.suneditor.com/sample/html/document.html)
|
|
1605
1605
|
|
|
1606
1606
|
## Other libraries using SunEditor
|
|
1607
1607
|
<a id="lib-suneditor-emojis"></a>[suneditor-emojis](https://github.com/davidkonrad/suneditor-emojis) ([@davidkonrad](https://suneditor-emojis.github.io/)) - Emojis plugin for SunEditor.
|