From 6840b599f1992a7e9d974f805704ea4b91a18aea Mon Sep 17 00:00:00 2001 From: DubrovinPavel Date: Fri, 26 Apr 2024 10:51:20 +0500 Subject: [PATCH] Added install instruction --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index e465379..5e1ff00 100644 --- a/README.md +++ b/README.md @@ -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); +}; +``` Использование ------------------------------------------------------------------------------