aurelia-froala-editor
Advanced tools
Comparing version 2.8.4 to 2.8.5
@@ -83,3 +83,3 @@ var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3; | ||
let handler = this.eventHandlers[eventHandlerName]; | ||
this.instance.on(`froalaEditor.${ eventHandlerName }`, function () { | ||
this.instance.on(`froalaEditor.${eventHandlerName}`, function () { | ||
let p = arguments; | ||
@@ -86,0 +86,0 @@ return handler.apply(this, p); |
{ | ||
"name": "aurelia-froala-editor", | ||
"version": "2.8.4", | ||
"version": "2.8.5", | ||
"description": "Aurelia plugin for Froala WYSIWYG HTML rich text editor.", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"aurelia-tools": "^1.0.0", | ||
"aurelia-tools": "^2.0.0", | ||
"babel-eslint": "^7.1.1", | ||
@@ -38,5 +38,5 @@ "babel-plugin-syntax-flow": "^6.18.0", | ||
"babel-preset-stage-1": "^6.22.0", | ||
"conventional-changelog": "1.1.3", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"conventional-changelog": "^2.0.3", | ||
"del": "^3.0.0", | ||
"gulp": "^4.0.0", | ||
"gulp-babel": "^6.1.2", | ||
@@ -47,20 +47,20 @@ "gulp-bump": "^2.7.0", | ||
"isparta": "^4.0.0", | ||
"istanbul": "^1.0.0-alpha.2", | ||
"jasmine-core": "^2.5.2", | ||
"karma": "^1.5.0", | ||
"karma-babel-preprocessor": "^6.0.1", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"jasmine-core": "^3.2.1", | ||
"karma": "^3.0.0", | ||
"karma-babel-preprocessor": "^7.0.0", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-coverage": "^1.1.1", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-jspm": "2.2.2", | ||
"karma-jspm": "^2.2.3", | ||
"object.assign": "^4.0.4", | ||
"require-dir": "^0.3.1", | ||
"run-sequence": "^1.2.2", | ||
"require-dir": "^1.0.0", | ||
"run-sequence": "^2.2.1", | ||
"vinyl-paths": "^2.1.0", | ||
"yargs": "^7.0.2" | ||
"yargs": "^12.0.2" | ||
}, | ||
"dependencies": { | ||
"froala-editor": "2.8.4", | ||
"aurelia-binding": "^1.0.0", | ||
"aurelia-dependency-injection": "^1.0.0" | ||
"aurelia-binding": "^2.1.4", | ||
"aurelia-framework": "^1.3.0", | ||
"froala-editor": "2.8.5" | ||
}, | ||
@@ -67,0 +67,0 @@ "jspm": { |
@@ -38,3 +38,8 @@ import {inject, customElement, bindable} from 'aurelia-framework'; | ||
// Get element. | ||
this.instance = $(this.element.getElementsByTagName("div")[0]); | ||
if (this.config.iframe) { | ||
this.instance = $(this.element.getElementsByTagName('textarea')[0]); | ||
} | ||
else { | ||
this.instance = $(this.element.getElementsByTagName('div')[0]); | ||
} | ||
@@ -60,3 +65,3 @@ // Check if editor isn't already initialized. | ||
} | ||
this.instance.on('froalaEditor.contentChanged, froalaEditor.blur', (e, editor) => this.value = editor.html.get()); | ||
this.instance.on('froalaEditor.contentChanged froalaEditor.blur', (e, editor) => this.value = editor.html.get()); | ||
@@ -63,0 +68,0 @@ // Initialize editor. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48606
1043
+ Addedaurelia-framework@^1.3.0
+ Addedaurelia-binding@2.5.4(transitive)
+ Addedaurelia-framework@1.4.1(transitive)
+ Addedaurelia-loader@1.0.2(transitive)
+ Addedaurelia-path@1.1.8(transitive)
+ Addedaurelia-templating@1.11.1(transitive)
+ Addedfroala-editor@2.8.5(transitive)
- Removedaurelia-dependency-injection@^1.0.0
- Removedaurelia-binding@1.7.3(transitive)
- Removedfroala-editor@2.8.4(transitive)
Updatedaurelia-binding@^2.1.4
Updatedfroala-editor@2.8.5