Skip to content

Commit

Permalink
Added install instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
DubrovinPavel committed Apr 26, 2024
1 parent 780fe86 commit 6840b59
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@ ember-flexberry-tinymce
ember install ember-flexberry-tinymce
```

Также нужно установить "broccoli-funnel": "^3.0.8" и "tinymce": "^6".

В ember-cli-build.js добавить:

```js
const Funnel = require('broccoli-funnel');

module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
// Добавьте эти опции для включения TinyMCE
autoImport: {
webpack: {
externals: { tinymce: 'tinymce' },
},
},
});

app.import('node_modules/tinymce/tinymce.min.js');

const tinymceTree = new Funnel('node_modules/tinymce/', {
include: ['icons/**/*', 'models/**/*', 'skins/**/*', 'themes/**/*', 'plugins/**/*', 'langs/**/*'],
destDir: '/assets'
});

return app.toTree(tinymceTree);
};
```

Использование
------------------------------------------------------------------------------
Expand Down

0 comments on commit 6840b59

Please sign in to comment.