Skip to content

Commit

Permalink
New version 3.2.55. Read more https://github.com/xdan/jodit/releases/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Valera committed Aug 13, 2019
1 parent 1c7c156 commit e722fad
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 24 deletions.
2 changes: 1 addition & 1 deletion build/jodit.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/jodit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "3.2.54",
"version": "3.2.55",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "src/types/index.d.ts",
Expand Down
38 changes: 19 additions & 19 deletions src/plugins/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,22 +161,22 @@ export function iframe(editor: IJodit) {
doc.open();
doc.write(
'<!DOCTYPE html>' +
'<html dir="' +
jodit.options.direction +
'" class="jodit" ' +
'lang="' +
defaultLanguage(jodit.options.language) +
'">' +
'<head>' +
'<title>Jodit Editor</title>' +
(jodit.options.iframeBaseUrl
? '<base href="' +
jodit.options.iframeBaseUrl +
'"/>'
: '') +
'</head>' +
'<body class="jodit_wysiwyg" style="outline:none" contenteditable="true"></body>' +
'</html>'
'<html dir="' +
jodit.options.direction +
'" class="jodit" ' +
'lang="' +
defaultLanguage(jodit.options.language) +
'">' +
'<head>' +
'<title>Jodit Editor</title>' +
(jodit.options.iframeBaseUrl
? '<base href="' +
jodit.options.iframeBaseUrl +
'"/>'
: '') +
'</head>' +
'<body class="jodit_wysiwyg" style="outline:none" contenteditable="true"></body>' +
'</html>'
);

doc.close();
Expand Down Expand Up @@ -236,7 +236,7 @@ export function iframe(editor: IJodit) {

if (editor.options.height === 'auto') {
doc.documentElement &&
(doc.documentElement.style.overflowY = 'hidden');
(doc.documentElement.style.overflowY = 'hidden');

const resizeIframe = throttle(() => {
if (
Expand Down Expand Up @@ -287,8 +287,8 @@ export function iframe(editor: IJodit) {
'mousedown touchstart keydown keyup touchend click mouseup mousemove scroll',
(e: Event) => {
editor.events &&
editor.events.fire &&
editor.events.fire(editor.ownerWindow, e);
editor.events.fire &&
editor.events.fire(editor.ownerWindow, e);
}
);
}
Expand Down
7 changes: 7 additions & 0 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ if (!Array.from) {
return [].slice.call(object);
};
}

// for ie11
if (!Array.prototype.includes) {
Array.prototype.includes = function (value: any) {
return this.indexOf(value) > -1;
}
}

0 comments on commit e722fad

Please sign in to comment.