aurelia-froala-editor
Advanced tools
Comparing version 2.7.1 to 2.7.2
{ | ||
"name": "aurelia-froala-editor", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"description": "Aurelia plugin for Froala WYSIWYG HTML rich text editor.", | ||
@@ -71,4 +71,4 @@ "keywords": [ | ||
"aurelia-polyfills": "^1.0.0", | ||
"jquery": "npm:jquery", | ||
"font-awesome": "npm:font-awesome", | ||
"jquery": "npm:jquery^1.11.0", | ||
"font-awesome": "npm:font-awesome^4.4.0", | ||
"froala-editor": "npm:froala-editor^2.6.0", | ||
@@ -75,0 +75,0 @@ "aurelia-binding": "npm:aurelia-binding@^1.0.0", |
@@ -108,5 +108,15 @@ # aurelia-froala-editor | ||
}, | ||
"jquery", | ||
{ | ||
"name": "aurelia-froala-wysiwyg", | ||
"path": "../node_modules/aurelia-froala-wysiwyg/dist/amd", | ||
"name": "froala-editor", | ||
"path": "../node_modules/froala-editor", | ||
"main": "js/froala_editor.min", | ||
"resources": [ | ||
"./js/**/*.{js}", | ||
"./css/**/*.{css}" | ||
] | ||
}, | ||
{ | ||
"name": "aurelia-froala-editor", | ||
"path": "../node_modules/aurelia-froala-editor/dist/amd", | ||
"main": "index", | ||
@@ -119,2 +129,3 @@ "resources": [ | ||
"jquery", | ||
"froala-editor", | ||
"font-awesome" | ||
@@ -149,9 +160,18 @@ ] | ||
- Add Font Awesome paths to `aurelia_project/aurelia.json` file: | ||
- Open `aurelia-project/tasks/build.js` file and modify it to look like this: | ||
```javascript | ||
au generate task copy-assets | ||
import copyAssets from './copy-assets'; | ||
let build = gulp.series( | ||
readProjectConfiguration, | ||
gulp.parallel( | ||
... | ||
copyAssets // Add this. | ||
), | ||
writeBundles | ||
); | ||
``` | ||
- A | ||
- Add Font Awesome paths to `aurelia_project/aurelia.json` file: | ||
@@ -187,4 +207,10 @@ ```javascript | ||
To configure your project with Webpack, follow the resources from Aurelia Docs: http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/setup-webpack/2 . | ||
To configure your project with Webpack, follow the resources from Aurelia Docs: http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/setup-webpack/2 . | ||
```bash | ||
git clone git@github.com:aurelia/skeleton-navigation.git | ||
cd skeleton-navigation/skeleton-esnext-webpack | ||
npm install | ||
``` | ||
#### Add aurelia-froala-editor | ||
@@ -224,6 +250,8 @@ | ||
```js | ||
const { AureliaPlugin, ModuleDependenciesPlugin } = require('aurelia-webpack-plugin'); | ||
plugins: [ | ||
new AureliaPlugin(), | ||
new ModuleDependenciesPlugin({ | ||
"aurelia-froala-wysiwyg": [ './froala-editor' ], | ||
"aurelia-froala-editor": [ './froala-editor' ], | ||
"parent-module": [ "child-module" ], | ||
@@ -248,4 +276,13 @@ }), | ||
```bash | ||
git clone git@github.com:aurelia/skeleton-navigation.git | ||
cd skeleton-navigation/skeleton-esnext | ||
npm install | ||
jspm install -y | ||
``` | ||
#### | ||
#### Add aurelia-froala-editor | ||
@@ -256,3 +293,3 @@ | ||
```bash | ||
jspm install aurelia-froala-editor | ||
jspm install aurelia-froala-editor | ||
``` | ||
@@ -310,5 +347,5 @@ | ||
"includes": [ | ||
... | ||
"froala/aurelia-froala-wysiwyg", | ||
... | ||
"froala/aurelia-froala-editor", | ||
... | ||
], | ||
@@ -375,3 +412,3 @@ "options": { | ||
```html | ||
<froala-editor | ||
<froala-editor | ||
value.two-way="value" | ||
@@ -404,3 +441,3 @@ config.bind="{ | ||
```html | ||
<froala-editor | ||
<froala-editor | ||
value.two-way="value" | ||
@@ -407,0 +444,0 @@ event-handlers.bind = "{ |
45459
442