Skip to content

Commit

Permalink
New version 3.2.46. Read more https://github.com/xdan/jodit/releases/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Valera committed Jul 3, 2019
1 parent f453949 commit d5dba94
Show file tree
Hide file tree
Showing 6 changed files with 334 additions and 12 deletions.
288 changes: 288 additions & 0 deletions build/jodit.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 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.45",
"version": "3.2.46",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "src/types/index.d.ts",
Expand Down
7 changes: 0 additions & 7 deletions src/modules/toolbar/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ export class ToolbarIcon {
name: string,
defaultValue: string = '<span></span>'
): string {

if (process.env.NODE_ENV !== 'production') {
if (ToolbarIcon.icons[name] === undefined) {
throw new Error('Wrong icon ' + name);
}
}

return ToolbarIcon.icons[name] !== undefined
? ToolbarIcon.icons[name]
: defaultValue;
Expand Down
41 changes: 41 additions & 0 deletions test/tests/filebrowserTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,5 +828,46 @@ describe('Jodit FileBrowser Tests', function() {
});
});
});

describe('Rename', function() {
describe('Folder', function() {
it('Should create button inside every folder of list', function(done) {
var editor = new Jodit(appendTestArea(), {
filebrowser: {
ajax: {
url: 'https://xdsoft.net/jodit/connector/index.php'
}
}
});

var filebrowser = editor.getInstance('FileBrowser');

filebrowser
.open(function() {
})
.then(function() {
var tree = filebrowser.browser.querySelector(
'.jodit_filebrowser_tree'
);

expect(tree).to.be.not.null;

const item = tree.querySelector('.jodit_filebrowser_tree_item');

expect(item).to.be.not.null;

const trigger = tree.querySelector('.jodit_icon_folder_rename');

expect(trigger).to.be.not.null;

done();
})
.catch(function(e) {
throw e;
});
});
});
});

afterEach(removeStuff);
});

0 comments on commit d5dba94

Please sign in to comment.