Skip to content

Commit

Permalink
fix(browser): remove methods not supported by IE
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Dec 5, 2017
1 parent c87c5e4 commit 7be2fd6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ For `ngModel` to work, You must import `FromsModule` from `@angular/forms`

### Documentation

Check [wiki][wiki] for more information
Check [wiki][wiki] for more information

[npm]: https://www.npmjs.com/
[yarn]: https://yarnpkg.com/lang/en/
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>NgxEditor</title><base href="ngx-editor"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.3ccbe96a5a764c24870d.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script async defer="defer" src="https://buttons.github.io/buttons.js"></script><script type="text/javascript" src="inline.dd8a541cfbc7a0565666.bundle.js"></script><script type="text/javascript" src="polyfills.ad37cd45a71cb38eee76.bundle.js"></script><script type="text/javascript" src="main.f4002c6365bd7516a919.bundle.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>NgxEditor</title><base href="ngx-editor"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.3ccbe96a5a764c24870d.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script async defer="defer" src="https://buttons.github.io/buttons.js"></script><script type="text/javascript" src="inline.d0cdd3c7718857fc66b0.bundle.js"></script><script type="text/javascript" src="polyfills.ad37cd45a71cb38eee76.bundle.js"></script><script type="text/javascript" src="main.e440c446c6bb4ba4ea65.bundle.js"></script></body></html>

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

1 change: 1 addition & 0 deletions docs/main.e440c446c6bb4ba4ea65.bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/main.f4002c6365bd7516a919.bundle.js

This file was deleted.

8 changes: 6 additions & 2 deletions src/app/ngx-editor/common/utils/ngx-editor.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
export function canEnableToolbarOptions(value: string, toolbar: any): boolean {

if (value) {

if (toolbar['length'] === 0) {
return true;
} else {
return toolbar.find(array => {
return array.includes(value);

const found = toolbar.filter(array => {
return array.indexOf(value) !== -1;
});

return found.length ? true : false;
}
} else {
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* You can add global styles to this file, and also import other style files */

@import "../node_modules/bootstrap/scss/bootstrap"; // bootstrap
@import "../node_modules/font-awesome/css/font-awesome.css"; // font-awesome
@import "../node_modules/font-awesome/css/font-awesome.css"; // font-awesome

0 comments on commit 7be2fd6

Please sign in to comment.