Socket
Socket
Sign inDemoInstall

summernote

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

summernote - npm Package Compare versions

Comparing version 0.8.16 to 0.8.17

dist/summernote-0.8.17-dist.zip

30

.github/CONTRIBUTING.md

@@ -10,7 +10,10 @@ ## Contributing

## Build summernote
Summernote uses [`yarn`](https://yarnpkg.com/) as a package manager.
```bash
npm install
$ yarn install
# build full version of summernote: dist/summernote.js
npm run build
$ yarn build

@@ -23,3 +26,3 @@ ```

```bash
npm run dev
$ yarn dev
# Open a browser on http://localhost:3000.

@@ -32,3 +35,3 @@ # If you change source code, automatically reload your page.

```bash
npm run test
$ yarn test
```

@@ -38,3 +41,3 @@ If you want run tests on other browser,

```
```javascript
karma: {

@@ -49,9 +52,10 @@ all: {

Or, pass `--browsers` argument via `npm run test` command.
Or, pass `--browsers` argument via `yarn test` command.
```bash
$ yarn test -- --browsers Safari,Firefox
```
$ npm run test -- --browsers Safari,Firefox
```
You can use `Chrome`, `ChromeCanary`, `Firefox`, `Opera`, `Safari`, `PhantomJS` and `IE` beside `PhantomJS`.
Once you run `npm test`, it will watch all javascript file. Therefore karma run tests every time you change code.
Once you run `yarn test`, it will watch all JavaScript file. Therefore karma runs tests every time you change code.

@@ -63,3 +67,3 @@ ## Test a part of test

```bash
$ npm run test:watch
$ yarn test:watch
```

@@ -70,11 +74,11 @@

```bash
$ npm run test:grep LinkDialog
$ yarn test:grep LinkDialog
```
## Prepush Hooks
As part of this repo, we use the NPM package husky to implement git hooks. We leverage the prepush hook to prevent bad commits.
As part of this repo, we use [Husky](https://github.com/typicode/husky) for git hooks. We leverage the prepush hook to prevent bad commits.
## Document structure
```
```text
- body container: <div class="note-editable">, <td>, <blockquote>, <ul>

@@ -81,0 +85,0 @@ - block node: <div>, <p>, <li>, <h1>, <table>

@@ -10,4 +10,4 @@ const webfont = require('webfont').default;

fontName: 'summernote',
template: 'src/icons/templates/summernote-icons.css',
destTemplate: 'src/styles/summernote-icons.css',
template: 'src/icons/templates/summernote-icons.scss',
destTemplate: 'src/styles/summernote-icons.scss',
templateFontName: 'summernote',

@@ -14,0 +14,0 @@ templateClassName: 'note-icon',

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */
/*!
*
* Super simple wysiwyg editor v0.8.16
* Super simple wysiwyg editor v0.8.17
* https://summernote.org

@@ -10,3 +10,3 @@ *

*
* Date: 2020-02-19T09:12Z
* Date: 2020-05-19T19:23Z
*

@@ -13,0 +13,0 @@ */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -1,1 +0,1 @@

/*! Summernote v0.8.16 | (c) 2013- Alan Hong and other contributors | MIT license */
/*! Summernote v0.8.17 | (c) 2013- Alan Hong and other contributors | MIT license */

@@ -71,9 +71,11 @@ var webpackConfig = require('./config/webpack.config.dev.js');

browsers: [
//'SL_WINDOWS_IE10',
//'SL_WINDOWS_IE11',
'SL_WINDOWS_EDGE',
'SL_WINDOWS_CHROME',
'SL_WINDOWS_FIREFOX',
//'SL_LINUX_FIREFOX',
'SL_MACOS_CHROME',
'SL_MACOS_SAFARI',
'SL_MACOS_FIREFOX',
//'SL_LINUX_FIREFOX',
],

@@ -92,4 +94,7 @@ sauceLabs: {

reporters: ['dots'],
browserDisconnectTimeout: 10000,
browserNoActivityTimeout: 60000,
singleRun: true,
});
};

@@ -15,5 +15,6 @@ (function($) {

size: 'Μέγεθος',
sizeunit: 'Μονάδα μεγέθους',
},
image: {
image: 'εικόνα',
image: 'Εικόνα',
insert: 'Εισαγωγή',

@@ -23,2 +24,3 @@ resizeFull: 'Πλήρες μέγεθος',

resizeQuarter: '1/4 μέγεθος',
resizeNone: 'Αρχικό μέγεθος',
floatLeft: 'Μετατόπιση αριστερά',

@@ -29,3 +31,3 @@ floatRight: 'Μετατόπιση δεξιά',

shapeCircle: 'Σχήμα: Κύκλος',
shapeThumbnail: 'Σχήμα: Thumbnail',
shapeThumbnail: 'Σχήμα: Μικρογραφία',
shapeNone: 'Σχήμα: Κανένα',

@@ -39,3 +41,3 @@ dragImageHere: 'Σύρτε την εικόνα εδώ',

remove: 'Αφαίρεση',
original: 'Original',
original: 'Αρχικό',
},

@@ -48,4 +50,5 @@ link: {

textToDisplay: 'Κείμενο συνδέσμου',
url: 'URL',
url: 'Σε ποιo URL πρέπει να πηγαίνει αυτός ο σύνδεσμος;',
openInNewWindow: 'Άνοιγμα σε νέο παράθυρο',
useProtocol: 'Χρήση προεπιλεγμένου πρωτοκόλλου',
},

@@ -57,13 +60,13 @@ video: {

url: 'URL',
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion or Youku)',
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion ή Youku)',
},
table: {
table: 'Πίνακας',
addRowAbove: 'Add row above',
addRowBelow: 'Add row below',
addColLeft: 'Add column left',
addColRight: 'Add column right',
delRow: 'Delete row',
delCol: 'Delete column',
delTable: 'Delete table',
addRowAbove: 'Προσθήκη γραμμής πάνω',
addRowBelow: 'Προσθήκη γραμμής κάτω',
addColLeft: 'Προσθήκη στήλης αριστερά',
addColRight: 'Προσθήκη στήλης δεξία',
delRow: 'Διαγραφή γραμμής',
delCol: 'Διαγραφή στήλης',
delTable: 'Διαγραφή πίνακα',
},

@@ -79,7 +82,7 @@ hr: {

h1: 'Κεφαλίδα 1',
h2: 'συνδέσμου 2',
h3: 'συνδέσμου 3',
h4: 'συνδέσμου 4',
h5: 'συνδέσμου 5',
h6: 'συνδέσμου 6',
h2: 'Κεφαλίδα 2',
h3: 'Κεφαλίδα 3',
h4: 'Κεφαλίδα 4',
h5: 'Κεφαλίδα 5',
h6: 'Κεφαλίδα 6',
},

@@ -113,2 +116,3 @@ lists: {

resetToDefault: 'Επαναφορά στις προκαθορισμένες τιμές',
cpSelect: 'Επιλογή',
},

@@ -125,2 +129,3 @@ shortcut: {

help: {
'escape': 'Έξοδος',
'insertParagraph': 'Εισαγωγή παραγράφου',

@@ -159,7 +164,10 @@ 'undo': 'Αναιρεί την προηγούμενη εντολή',

specialChar: {
specialChar: 'SPECIAL CHARACTERS',
specialChar: 'ΕΙΔΙΚΟΙ ΧΑΡΑΚΤΗΡΕΣ',
select: 'Επιλέξτε ειδικούς χαρακτήρες',
},
output: {
noSelection: 'Δεν έγινε επιλογή!',
},
},
});
})(jQuery);

@@ -25,11 +25,11 @@ (function($) {

floatNone: 'Fjern flyt',
shapeRounded: 'Shape: Rounded',
shapeCircle: 'Shape: Circle',
shapeThumbnail: 'Shape: Thumbnail',
shapeNone: 'Shape: None',
shapeRounded: 'Form: Rundet',
shapeCircle: 'Form: Sirkel',
shapeThumbnail: 'Form: Miniatyr',
shapeNone: 'Form: Ingen',
dragImageHere: 'Dra et bilde hit',
dropImage: 'Drop image or Text',
selectFromFiles: 'Velg fra filer',
maximumFileSize: 'Maximum file size',
maximumFileSizeError: 'Maximum file size exceeded.',
maximumFileSize: 'Max filstørrelse',
maximumFileSizeError: 'Maks filstørrelse overskredet.',
url: 'Bilde-URL',

@@ -57,9 +57,9 @@ remove: 'Fjern bilde',

table: 'Tabell',
addRowAbove: 'Add row above',
addRowBelow: 'Add row below',
addColLeft: 'Add column left',
addColRight: 'Add column right',
delRow: 'Delete row',
delCol: 'Delete column',
delTable: 'Delete table',
addRowAbove: 'Legg til rad over',
addRowBelow: 'Legg til rad under',
addColLeft: 'Legg til kolonne på venstre side',
addColRight: 'Legg til kolonne på høyre side',
delRow: 'Slett rad',
delCol: 'Slett kolonne',
delTable: 'Slett tabell',
},

@@ -71,3 +71,3 @@ hr: {

style: 'Stil',
p: 'p',
p: 'Paragraf',
blockquote: 'Sitat',

@@ -119,29 +119,29 @@ pre: 'Kode',

help: {
'insertParagraph': 'Insert Paragraph',
'undo': 'Undoes the last command',
'redo': 'Redoes the last command',
'insertParagraph': 'Sett inn avsnitt',
'undo': 'Angre siste handling',
'redo': 'Gjør om siste handling',
'tab': 'Tab',
'untab': 'Untab',
'bold': 'Set a bold style',
'italic': 'Set a italic style',
'underline': 'Set a underline style',
'strikethrough': 'Set a strikethrough style',
'removeFormat': 'Clean a style',
'justifyLeft': 'Set left align',
'justifyCenter': 'Set center align',
'justifyRight': 'Set right align',
'justifyFull': 'Set full align',
'insertUnorderedList': 'Toggle unordered list',
'insertOrderedList': 'Toggle ordered list',
'outdent': 'Outdent on current paragraph',
'indent': 'Indent on current paragraph',
'formatPara': 'Change current block\'s format as a paragraph(P tag)',
'formatH1': 'Change current block\'s format as H1',
'formatH2': 'Change current block\'s format as H2',
'formatH3': 'Change current block\'s format as H3',
'formatH4': 'Change current block\'s format as H4',
'formatH5': 'Change current block\'s format as H5',
'formatH6': 'Change current block\'s format as H6',
'insertHorizontalRule': 'Insert horizontal rule',
'linkDialog.show': 'Show Link Dialog',
'bold': 'Angi en fet stil',
'italic': 'Angi en kursiv stil',
'underline': 'Sett en understreket stil',
'strikethrough': 'Sett en gjennomgående sti',
'removeFormat': 'Tøm formattering',
'justifyLeft': 'Angi venstrejustering',
'justifyCenter': 'Angi sentrert justering',
'justifyRight': 'Angi høyre justering',
'justifyFull': 'Angi full justering',
'insertUnorderedList': 'Bytt uordnet liste',
'insertOrderedList': 'Bytt sortert liste',
'outdent': 'Utrykk på valgt avsnitt',
'indent': 'Innrykk på valgt avsnitt',
'formatPara': 'Endre gjeldende blokkformat til et avsnitt (P-kode)',
'formatH1': 'Endre gjeldende blokkformat til H1',
'formatH2': 'Endre gjeldende blokkformat til H2',
'formatH3': 'Endre gjeldende blokkformat til H3',
'formatH4': 'Endre gjeldende blokkformat til H4',
'formatH5': 'Endre gjeldende blokkformat til H5',
'formatH6': 'Endre gjeldende blokkformat til H6',
'insertHorizontalRule': 'Sett inn horisontal deler',
'linkDialog.show': 'Vis koblingsdialog',
},

@@ -153,4 +153,4 @@ history: {

specialChar: {
specialChar: 'SPECIAL CHARACTERS',
select: 'Select Special characters',
specialChar: 'SPESIELLE TEGN',
select: 'Velg spesielle tegn',
},

@@ -157,0 +157,0 @@ },

{
"name": "summernote",
"description": "Super simple WYSIWYG editor",
"version": "0.8.16",
"version": "0.8.17",
"license": "MIT",

@@ -28,18 +28,19 @@ "keywords": [

"test:ci": "karma start karma.ci.conf.js --single-run",
"test:sauce": "karma start karma.saucelabs.conf.js --single-run"
"test:sauce": "karma start karma.saucelabs.conf.js --single-run",
"test:debug": "karma start karma.debug.conf.js"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm run lint && npm run test"
"pre-commit": "yarn lint",
"pre-push": "yarn lint && yarn run test"
}
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-external-helpers": "^7.7.4",
"@babel/preset-env": "^7.7.7",
"autoprefixer": "^9.7.3",
"@babel/core": "^7.9.0",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"autoprefixer": "^9.7.6",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"babel-plugin-module-resolver": "^4.0.0",

@@ -49,24 +50,24 @@ "bootstrap": "^4.4.1",

"chai-spies": "^1.0.0",
"chromedriver": "^80.0.1",
"chromedriver": "^81.0.0",
"clean-webpack-plugin": "^3.0.0",
"concurrently": "^5.0.2",
"copy-webpack-plugin": "^5.1.1",
"css-loader": "^3.4.2",
"css-loader": "^3.5.2",
"cssnano": "^4.1.10",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-loader": "^3.0.3",
"eslint-config-standard": "^14.1.1",
"eslint-loader": "^4.0.0",
"eslint-plugin-chai-friendly": "^0.5.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"file-loader": "^5.0.2",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"husky": "^4.2.3",
"jquery": "^3.4.1",
"karma": "^4.4.1",
"file-loader": "^6.0.0",
"html-loader": "^1.1.0",
"html-webpack-plugin": "^4.2.0",
"husky": "^4.2.5",
"jquery": "^3.5.0",
"karma": "^5.0.2",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.1",
"karma-coverage": "^2.0.2",
"karma-coveralls": "^2.1.0",

@@ -76,32 +77,30 @@ "karma-detect-browsers": "^2.3.3",

"karma-ie-launcher": "^1.0.0",
"karma-mocha": "^1.3.0",
"karma-mocha": "^2.0.0",
"karma-opera-launcher": "^1.0.0",
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "2.0.2",
"karma-sauce-launcher": "^1.2.0",
"karma-webpack": "^4.0.2",
"less": "^3.10.3",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"mini-css-extract-plugin": "^0.9.0",
"mocha": "^7.0.1",
"mocha": "^7.1.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"popper.js": "^1.16.0",
"popper.js": "^1.16.1",
"postcss-loader": "^3.0.0",
"sass": "^1.24.4",
"sass": "^1.26.3",
"sass-loader": "^8.0.2",
"serve-static": "^1.14.1",
"string-replace-loader": "^2.2.0",
"style-loader": "^1.1.3",
"string-replace-loader": "^2.3.0",
"style-loader": "^1.1.4",
"terser-webpack-plugin": "^2.3.5",
"uglify-js": "^3.7.3",
"url-loader": "^3.0.0",
"uglify-js": "^3.9.1",
"url-loader": "^4.1.0",
"webfont": "^9.0.0",
"webpack": "^4.41.5",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1",
"webpack": "^4.42.1",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"zip-webpack-plugin": "^3.0.0"
},
"dependencies": {
"npm-check-updates": "^4.0.1"
}
"dependencies": {}
}

@@ -104,3 +104,3 @@ import $ from 'jquery';

if (isActivated) {
this.layoutInfo.codable.val(html);
this.invoke('codeview.sync', html);
} else {

@@ -107,0 +107,0 @@ this.layoutInfo.editable.html(html);

@@ -578,4 +578,48 @@ import $ from 'jquery';

if (nodeLength(point.node) === point.offset) {
if (isEditable(point.node)) {
return null;
}
let nextTextNode = getNextTextNode(point.node);
if (nextTextNode) {
node = nextTextNode;
offset = 0;
} else {
node = point.node.parentNode;
offset = position(point.node) + 1;
}
} else if (hasChildren(point.node)) {
node = point.node.childNodes[point.offset];
offset = 0;
} else {
node = point.node;
offset = isSkipInnerOffset ? nodeLength(point.node) : point.offset + 1;
}
return {
node: node,
offset: offset,
};
}
/**
* returns next boundaryPoint with empty node
*
* @param {BoundaryPoint} point
* @param {Boolean} isSkipInnerOffset
* @return {BoundaryPoint}
*/
function nextPointWithEmptyNode(point, isSkipInnerOffset) {
let node, offset;
// if node is empty string node, return current node's sibling.
if (isEmpty(point.node)) {
return null;
node = point.node.nextSibling;
offset = 0;
return {
node: node,
offset: offset,
};
}

@@ -590,2 +634,9 @@

offset = position(point.node) + 1;
// if next node is editable , return current node's sibling node.
if (isEditable(node)) {
node = point.node.nextSibling;
offset = 0;
}
} else if (hasChildren(point.node)) {

@@ -612,2 +663,13 @@ node = point.node.childNodes[point.offset];

/*
* returns the next Text node index or 0 if not found.
*/
function getNextTextNode(actual) {
if(!actual.nextSibling) return undefined;
if(actual.parent !== actual.nextSibling.parent) return undefined;
if(isText(actual.nextSibling) ) return actual.nextSibling;
else return getNextTextNode(actual.nextSibling);
}
/**

@@ -733,3 +795,3 @@ * returns whether pointA and pointB is same or not.

endPoint.node !== point.node;
point = nextPoint(point, isSkipOffset);
point = nextPointWithEmptyNode(point, isSkipOffset);
}

@@ -1115,2 +1177,3 @@ }

nextPoint,
nextPointWithEmptyNode,
isSamePoint,

@@ -1117,0 +1180,0 @@ isVisiblePoint,

@@ -49,4 +49,2 @@ import $ from 'jquery';

let hasCodeMirror = !!window.CodeMirror;
const isSupportTouch =

@@ -82,3 +80,2 @@ (('ontouchstart' in window) ||

isSupportTouch,
hasCodeMirror,
isFontInstalled,

@@ -85,0 +82,0 @@ isW3CRangeSupport: !!document.createRange,

@@ -8,2 +8,3 @@ import lists from './lists';

'ENTER': 13,
'ESCAPE': 27,
'SPACE': 32,

@@ -10,0 +11,0 @@ 'DELETE': 46,

@@ -142,4 +142,4 @@ import $ from 'jquery';

const w3cRange = document.createRange();
w3cRange.setStart(this.sc, this.sc.data && this.so > this.sc.data.length ? 0 : this.so);
w3cRange.setEnd(this.ec, this.sc.data ? Math.min(this.eo, this.sc.data.length) : this.eo);
w3cRange.setStart(this.sc, this.so);
w3cRange.setEnd(this.ec, this.eo);

@@ -558,2 +558,5 @@ return w3cRange;

info.rightNode.parentNode.insertBefore(node, info.rightNode);
if (dom.isEmpty(info.rightNode) && dom.isPara(node)) {
info.rightNode.parentNode.removeChild(info.rightNode);
}
} else {

@@ -577,10 +580,14 @@ info.container.appendChild(node);

const rng = this;
let reversed = false;
if (rng.so >= 0) {
childNodes = childNodes.reverse();
reversed = true;
}
childNodes = childNodes.map(function(childNode) {
return rng.insertNode(childNode);
});
if (rng.so > 0) {
if (reversed) {
childNodes = childNodes.reverse();

@@ -587,0 +594,0 @@ }

@@ -62,3 +62,3 @@ import $ from 'jquery';

if (dom.isLi(splitRoot) && (dom.isEmpty(splitRoot) || dom.deepestChildIsEmpty(splitRoot))) {
// toogle UL/OL and escape
// toggle UL/OL and escape
this.bullet.toggleList(splitRoot.parentNode.nodeName);

@@ -65,0 +65,0 @@ return;

@@ -95,2 +95,9 @@ import $ from 'jquery';

updateCodeview(isCodeview) {
this.ui.toggleBtnActive(this.$popover.find('.btn-codeview'), isCodeview);
if (isCodeview) {
this.hide();
}
}
hide() {

@@ -97,0 +104,0 @@ if (this.hidable) {

@@ -11,2 +11,3 @@ import $ from 'jquery';

this.context = context;
this.options = context.options;
this.events = {

@@ -42,3 +43,5 @@ 'summernote.keyup': (we, e) => {

const link = match[1] ? keyword : defaultScheme + keyword;
const urlText = keyword.replace(/^(?:https?:\/\/)?(?:tel?:?)?(?:mailto?:?)?(?:www\.)?/i, '').split('/')[0];
const urlText = this.options.showDomainOnlyForAutolink ?
keyword.replace(/^(?:https?:\/\/)?(?:tel?:?)?(?:mailto?:?)?(?:www\.)?/i, '').split('/')[0]
: keyword;
const node = $('<a />').html(urlText).attr('href', link)[0];

@@ -45,0 +48,0 @@ if (this.context.options.linkTargetBlank) {

@@ -121,9 +121,9 @@ import $ from 'jquery';

'<div>',
'<button type="button" class="note-color-reset btn btn-light" data-event="backColor" data-value="inherit">',
'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="backColor" data-value="transparent">',
this.lang.color.transparent,
'</button>',
'</div>',
'<div class="note-holder" data-event="backColor"/>',
'<div class="note-holder" data-event="backColor"><!-- back colors --></div>',
'<div>',
'<button type="button" class="note-color-select btn btn-light" data-event="openPalette" data-value="backColorPicker">',
'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="backColorPicker">',
this.lang.color.cpSelect,

@@ -133,3 +133,3 @@ '</button>',

'</div>',
'<div class="note-holder-custom" id="backColorPalette" data-event="backColor"/>',
'<div class="note-holder-custom" id="backColorPalette" data-event="backColor"></div>',
'</div>',

@@ -141,9 +141,9 @@ ].join('') : '') +

'<div>',
'<button type="button" class="note-color-reset btn btn-light" data-event="removeFormat" data-value="foreColor">',
'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="removeFormat" data-value="foreColor">',
this.lang.color.resetToDefault,
'</button>',
'</div>',
'<div class="note-holder" data-event="foreColor"/>',
'<div class="note-holder" data-event="foreColor"><!-- fore colors --></div>',
'<div>',
'<button type="button" class="note-color-select btn btn-light" data-event="openPalette" data-value="foreColorPicker">',
'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="foreColorPicker">',
this.lang.color.cpSelect,

@@ -153,3 +153,3 @@ '</button>',

'</div>', // Fix missing Div, Commented to find easily if it's wrong
'<div class="note-holder-custom" id="foreColorPalette" data-event="foreColor"/>',
'<div class="note-holder-custom" id="foreColorPalette" data-event="foreColor"></div>',
'</div>',

@@ -366,3 +366,3 @@ ].join('') : ''),

contents: this.ui.dropdownButtonContents(
'<span class="note-current-fontname"/>', this.options
'<span class="note-current-fontname"></span>', this.options
),

@@ -391,3 +391,3 @@ tooltip: this.lang.font.name,

className: 'dropdown-toggle',
contents: this.ui.dropdownButtonContents('<span class="note-current-fontsize"/>', this.options),
contents: this.ui.dropdownButtonContents('<span class="note-current-fontsize"></span>', this.options),
tooltip: this.lang.font.size,

@@ -412,3 +412,3 @@ data: {

className: 'dropdown-toggle',
contents: this.ui.dropdownButtonContents('<span class="note-current-fontsizeunit"/>', this.options),
contents: this.ui.dropdownButtonContents('<span class="note-current-fontsizeunit"></span>', this.options),
tooltip: this.lang.font.sizeunit,

@@ -558,5 +558,5 @@ data: {

'<div class="note-dimension-picker">',
'<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"/>',
'<div class="note-dimension-picker-highlighted"/>',
'<div class="note-dimension-picker-unhighlighted"/>',
'<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>',
'<div class="note-dimension-picker-highlighted"></div>',
'<div class="note-dimension-picker-unhighlighted"></div>',
'</div>',

@@ -612,3 +612,3 @@ '<div class="note-dimension-display">1 x 1</div>',

return this.button({
className: 'btn-fullscreen',
className: 'btn-fullscreen note-codeview-keep',
contents: this.ui.icon(this.options.icons.arrowsAlt),

@@ -622,3 +622,3 @@ tooltip: this.lang.options.fullscreen,

return this.button({
className: 'btn-codeview',
className: 'btn-codeview note-codeview-keep',
contents: this.ui.icon(this.options.icons.code),

@@ -625,0 +625,0 @@ tooltip: this.lang.options.codeview,

@@ -1,9 +0,4 @@

import env from '../core/env';
import dom from '../core/dom';
import key from '../core/key';
let CodeMirror;
if (env.hasCodeMirror) {
CodeMirror = window.CodeMirror;
}
/**

@@ -19,11 +14,36 @@ * @class Codeview

this.options = context.options;
this.CodeMirrorConstructor = window.CodeMirror;
if (this.options.codemirror.CodeMirrorConstructor) {
this.CodeMirrorConstructor = this.options.codemirror.CodeMirrorConstructor;
}
}
sync() {
sync(html) {
const isCodeview = this.isActivated();
if (isCodeview && env.hasCodeMirror) {
this.$codable.data('cmEditor').save();
const CodeMirror = this.CodeMirrorConstructor;
if (isCodeview) {
if (html) {
if (CodeMirror) {
this.$codable.data('cmEditor').getDoc().setValue(html);
} else {
this.$codable.val(html);
}
} else {
if (CodeMirror) {
this.$codable.data('cmEditor').save();
}
}
}
}
initialize() {
this.$codable.on('keyup', (event) => {
if (event.keyCode === key.code.ESCAPE) {
this.deactivate();
}
});
}
/**

@@ -82,2 +102,3 @@ * @return {Boolean}

activate() {
const CodeMirror = this.CodeMirrorConstructor;
this.$codable.val(dom.html(this.$editable, this.options.prettifyHtml));

@@ -87,2 +108,4 @@ this.$codable.height(this.$editable.height());

this.context.invoke('toolbar.updateCodeview', true);
this.context.invoke('airPopover.updateCodeview', true);
this.$editor.addClass('codeview');

@@ -92,3 +115,3 @@ this.$codable.focus();

// activate CodeMirror as codable
if (env.hasCodeMirror) {
if (CodeMirror) {
const cmEditor = CodeMirror.fromTextArea(this.$codable[0], this.options.codemirror);

@@ -129,4 +152,5 @@

deactivate() {
const CodeMirror = this.CodeMirrorConstructor;
// deactivate CodeMirror as codable
if (env.hasCodeMirror) {
if (CodeMirror) {
const cmEditor = this.$codable.data('cmEditor');

@@ -151,2 +175,3 @@ this.$codable.val(cmEditor.getValue());

this.context.invoke('toolbar.updateCodeview', false);
this.context.invoke('airPopover.updateCodeview', false);
}

@@ -153,0 +178,0 @@

@@ -15,3 +15,3 @@ import $ from 'jquery';

'<div class="note-dropzone">',
'<div class="note-dropzone-message"/>',
'<div class="note-dropzone-message"></div>',
'</div>',

@@ -18,0 +18,0 @@ ].join('')).prependTo(this.$editor);

@@ -40,2 +40,3 @@ import $ from 'jquery';

this.context.memo('help.escape', this.lang.help.escape);
this.context.memo('help.undo', this.lang.help.undo);

@@ -241,14 +242,4 @@ this.context.memo('help.redo', this.lang.help.redo);

const startRange = range.createFromNodeBefore(lists.head(anchors));
const startPoint = startRange.getStartPoint();
const endRange = range.createFromNodeAfter(lists.last(anchors));
const endPoint = endRange.getEndPoint();
this.setLastRange(
range.create(
startPoint.node,
startPoint.offset,
endPoint.node,
endPoint.offset
).select()
this.createRangeFromList(anchors).select()
);

@@ -501,2 +492,3 @@ });

}
/**

@@ -512,2 +504,30 @@ * create range

/**
* create a new range from the list of elements
*
* @param {list} dom element list
* @return {WrappedRange}
*/
createRangeFromList(lst) {
const startRange = range.createFromNodeBefore(lists.head(lst));
const startPoint = startRange.getStartPoint();
const endRange = range.createFromNodeAfter(lists.last(lst));
const endPoint = endRange.getEndPoint();
return range.create(
startPoint.node,
startPoint.offset,
endPoint.node,
endPoint.offset
);
}
/**
* set the last range
*
* if given rng is exist, set rng as the last range
* or create a new range at the end of the document
*
* @param {WrappedRange} rng
*/
setLastRange(rng) {

@@ -525,2 +545,10 @@ if (rng) {

/**
* get the last range
*
* if there is a saved last range, return it
* or create a new range and return it
*
* @return {WrappedRange}
*/
getLastRange() {

@@ -810,6 +838,10 @@ if (!this.lastRange) {

firstSpan.innerHTML = dom.ZERO_WIDTH_NBSP_CHAR;
range.createFromNodeAfter(firstSpan.firstChild).select();
range.createFromNode(firstSpan.firstChild).select();
this.setLastRange();
this.$editable.data(KEY_BOGUS, firstSpan);
}
} else {
this.setLastRange(
this.createRangeFromList(spans).select()
);
}

@@ -816,0 +848,0 @@ } else {

@@ -48,3 +48,3 @@ import $ from 'jquery';

const command = keyMap[key];
const $row = $('<div><div class="help-list-item"/></div>');
const $row = $('<div><div class="help-list-item"></div></div>');
$row.append($('<label><kbd>' + key + '</kdb></label>').css({

@@ -51,0 +51,0 @@ 'width': 180,

@@ -188,3 +188,3 @@ import $ from 'jquery';

createGroup(idx, keyword) {
const $group = $('<div class="note-hint-group note-hint-group-' + idx + '"/>');
const $group = $('<div class="note-hint-group note-hint-group-' + idx + '"></div>');
this.searchKeyword(idx, keyword, (items) => {

@@ -191,0 +191,0 @@ items = items || [];

@@ -138,3 +138,3 @@ import $ from 'jquery';

if (!isIncludeCodeview) {
$btn = $btn.not('.btn-codeview').not('.btn-fullscreen');
$btn = $btn.not('.note-codeview-keep');
}

@@ -147,3 +147,3 @@ this.ui.toggleBtn($btn, true);

if (!isIncludeCodeview) {
$btn = $btn.not('.btn-codeview').not('.btn-fullscreen');
$btn = $btn.not('.note-codeview-keep');
}

@@ -150,0 +150,0 @@ this.ui.toggleBtn($btn, false);

@@ -51,3 +51,3 @@ import $ from 'jquery';

// video url patterns(youtube, instagram, vimeo, dailymotion, youku, mp4, ogg, webm)
const ytRegExp = /\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?$/;
const ytRegExp = /\/\/(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?$/;
const ytRegExpForStart = /^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/;

@@ -140,3 +140,3 @@ const ytMatch = url.match(ytRegExp);

.attr('width', '500')
.attr('src', 'https://v.qq.com/iframe/player.html?vid=' + vid + '&amp;auto=0');
.attr('src', 'https://v.qq.com/txp/iframe/player.html?vid=' + vid + '&amp;auto=0');
} else if (mp4Match || oggMatch || webmMatch) {

@@ -143,0 +143,0 @@ $video = $('<video controls>')

@@ -77,2 +77,3 @@ import $ from 'jquery';

// toolbar
codeviewKeepButton: false,
toolbar: [

@@ -143,2 +144,5 @@ ['style', ['style']],

// TODO: need to be documented
showDomainOnlyForAutolink: false,
// TODO: need to be documented
hintMode: 'word',

@@ -251,2 +255,3 @@ hintSelect: 'after',

pc: {
'ESC': 'escape',
'ENTER': 'insertParagraph',

@@ -282,2 +287,3 @@ 'CTRL+Z': 'undo',

mac: {
'ESC': 'escape',
'ENTER': 'insertParagraph',

@@ -284,0 +290,0 @@ 'CMD+Z': 'undo',

@@ -126,5 +126,6 @@ import $ from 'jquery';

help: {
'escape': 'Escape',
'insertParagraph': 'Insert Paragraph',
'undo': 'Undoes the last command',
'redo': 'Redoes the last command',
'undo': 'Undo the last command',
'redo': 'Redo the last command',
'tab': 'Tab',

@@ -131,0 +132,0 @@ 'untab': 'Untab',

@@ -5,3 +5,3 @@ import $ from 'jquery';

const editor = renderer.create('<div class="note-editor note-frame panel panel-default"/>');
const toolbar = renderer.create('<div class="note-toolbar panel-heading" role="toolbar"></div></div>');
const toolbar = renderer.create('<div class="panel-heading note-toolbar" role="toolbar"/>');
const editingArea = renderer.create('<div class="note-editing-area"/>');

@@ -11,8 +11,8 @@ const codable = renderer.create('<textarea class="note-codable" aria-multiline="true"/>');

const statusbar = renderer.create([
'<output class="note-status-output" role="status" aria-live="polite"/>',
'<output class="note-status-output" role="status" aria-live="polite"></output>',
'<div class="note-statusbar" role="status">',
'<div class="note-resizebar" aria-label="Resize">',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"></div>',
'<div class="note-icon-bar"></div>',
'<div class="note-icon-bar"></div>',
'</div>',

@@ -24,4 +24,4 @@ '</div>',

const airEditable = renderer.create([
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>',
'<output class="note-status-output" role="status" aria-live="polite"/>',
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>',
'<output class="note-status-output" role="status" aria-live="polite"></output>',
].join(''));

@@ -43,2 +43,6 @@

$node.html(markup).attr({ 'aria-label': options.title });
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -57,2 +61,6 @@

$node.html(markup).attr({ 'aria-label': options.title });
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -83,4 +91,4 @@

'<div class="note-popover popover in">',
'<div class="arrow"/>',
'<div class="popover-content note-children-container"/>',
'<div class="arrow"></div>',
'<div class="popover-content note-children-container"></div>',
'</div>',

@@ -110,3 +118,3 @@ ].join(''), function($node, options) {

tagName = tagName || 'i';
return '<' + tagName + ' class="' + iconClassName + '"/>';
return '<' + tagName + ' class="' + iconClassName + '"></' + tagName+'>';
};

@@ -183,2 +191,5 @@

}
if (options && options.codeviewButton) {
$node.addClass('note-codeview-keep');
}
})($node, options);

@@ -185,0 +196,0 @@ },

@@ -5,3 +5,3 @@ import $ from 'jquery';

const editor = renderer.create('<div class="note-editor note-frame card"/>');
const toolbar = renderer.create('<div class="note-toolbar card-header" role="toolbar"></div>');
const toolbar = renderer.create('<div class="note-toolbar card-header" role="toolbar"/>');
const editingArea = renderer.create('<div class="note-editing-area"/>');

@@ -11,9 +11,8 @@ const codable = renderer.create('<textarea class="note-codable" aria-multiline="true"/>');

const statusbar = renderer.create([
'<output class="note-status-output" role="status" aria-live="polite"/>',
'<output class="note-status-output" role="status" aria-live="polite"></output>',
'<div class="note-statusbar" role="status">',
'<output class="note-status-output" aria-live="polite"></output>',
'<div class="note-resizebar" aria-label="Resize">',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"></div>',
'<div class="note-icon-bar"></div>',
'<div class="note-icon-bar"></div>',
'</div>',

@@ -25,4 +24,4 @@ '</div>',

const airEditable = renderer.create([
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>',
'<output class="note-status-output" role="status" aria-live="polite"/>',
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>',
'<output class="note-status-output" role="status" aria-live="polite"></output>',
].join(''));

@@ -44,2 +43,6 @@

$node.html(markup).attr({ 'aria-label': options.title });
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -58,2 +61,6 @@

$node.html(markup).attr({ 'aria-label': options.title });
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -84,4 +91,4 @@

'<div class="note-popover popover in">',
'<div class="arrow"/>',
'<div class="popover-content note-children-container"/>',
'<div class="arrow"></div>',
'<div class="popover-content note-children-container"></div>',
'</div>',

@@ -112,3 +119,3 @@ ].join(''), function($node, options) {

tagName = tagName || 'i';
return '<' + tagName + ' class="' + iconClassName + '"/>';
return '<' + tagName + ' class="' + iconClassName + '"></' + tagName+'>';
};

@@ -185,2 +192,5 @@

}
if (options && options.codeviewButton) {
$node.addClass('note-codeview-keep');
}
})($node, options);

@@ -187,0 +197,0 @@ },

@@ -13,8 +13,8 @@ import $ from 'jquery';

const statusbar = renderer.create([
'<output class="note-status-output" role="status" aria-live="polite"/>',
'<output class="note-status-output" role="status" aria-live="polite"></output>',
'<div class="note-statusbar" role="status">',
'<div class="note-resizebar" aria-label="resize">',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"/>',
'<div class="note-icon-bar"></div>',
'<div class="note-icon-bar"></div>',
'<div class="note-icon-bar"></div>',
'</div>',

@@ -26,4 +26,4 @@ '</div>',

const airEditable = renderer.create([
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>',
'<output class="note-status-output" role="status" aria-live="polite"/>',
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>',
'<output class="note-status-output" role="status" aria-live="polite"></output>',
].join(''));

@@ -54,2 +54,6 @@

}
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -82,2 +86,5 @@

});
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -109,2 +116,5 @@

});
if (options && options.codeviewKeepButton) {
$node.addClass('note-codeview-keep');
}
});

@@ -234,5 +244,5 @@

'<div class="note-dimension-picker">',
'<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"/>',
'<div class="note-dimension-picker-highlighted"/>',
'<div class="note-dimension-picker-unhighlighted"/>',
'<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>',
'<div class="note-dimension-picker-highlighted"></div>',
'<div class="note-dimension-picker-unhighlighted"></div>',
'</div>',

@@ -320,7 +330,7 @@ '<div class="note-dimension-display">1 x 1</div>',

'<div>',
'<button type="button" class="note-color-reset note-btn note-btn-block" data-event="backColor" data-value="inherit">',
'<button type="button" class="note-color-reset note-btn note-btn-block" data-event="backColor" data-value="transparent">',
opt.lang.color.transparent,
'</button>',
'</div>',
'<div class="note-holder" data-event="backColor"/>',
'<div class="note-holder" data-event="backColor"></div>',
'<div class="btn-sm">',

@@ -340,3 +350,3 @@ '<input type="color" id="html5bcp" class="note-btn btn-default" value="#21104A" style="width:100%;" data-value="cp">',

'</div>',
'<div class="note-holder" data-event="foreColor"/>',
'<div class="note-holder" data-event="foreColor"></div>',
'<div class="btn-sm">',

@@ -493,4 +503,4 @@ '<input type="color" id="html5fcp" class="note-btn btn-default" value="#21104A" style="width:100%;" data-value="cp">',

'<div class="note-popover bottom">',
'<div class="note-popover-arrow"/>',
'<div class="popover-content note-children-container"/>',
'<div class="note-popover-arrow"></div>',
'<div class="popover-content note-children-container"></div>',
'</div>',

@@ -497,0 +507,0 @@ ].join(''), function($node, options) {

@@ -16,4 +16,4 @@ import $ from 'jquery';

'<div class="note-tooltip">',
'<div class="note-tooltip-arrow"/>',
'<div class="note-tooltip-content"/>',
'<div class="note-tooltip-arrow"></div>',
'<div class="note-tooltip-content"></div>',
'</div>',

@@ -20,0 +20,0 @@ ].join(''));

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 not supported yet

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 not supported yet

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc