- In file '/angular/demo{#}/src/assets/sass/style.angular.scss' comment the next rows [8, 9]:
// @import "./core/vendors/plugins/prismjs";
// @import "./core/vendors/plugins/formvalidation";
{ | |
"name": "demo3", | |
"version": "8.0.38", | |
"private": true, | |
"homepage": "/metronic8/react/demo3", | |
"dependencies": { | |
"@formatjs/intl-pluralrules": "^4.0.28", | |
"@formatjs/intl-relativetimeformat": "^9.1.7", | |
"@fortawesome/fontawesome-free": "^5.15.3", | |
"@popperjs/core": "~2.10.1", |
rtl.config.js
file.package.json
file (copy them from the package.json) below and re-install packages with yarn
command.yarn run webpack --config webpack-rtl.config.js
src/index.tsx
file comment rows [18, 19]:
// import './_metronic/assets/sass/plugins.scss'
// import './_metronic/assets/sass/style.scss'
src/index.tsx
add the row: import './_metronic/assets/css/style.rtl.css'
(! before style.react.scss).public/index.html
update the html tag with: <html direction="rtl" dir="rtl" style="direction: rtl">
data-kt-menu-placement='bottom-start' => data-kt-menu-placement='bottom-end'
// ! CKEditor doesn't have a port to the Typescript version, cause of that we use @ts-ignore a lot here: | |
// @ts-ignore | |
import {CKEditor} from '@ckeditor/ckeditor5-react' | |
// @ts-ignore | |
import ClassicEditor from '@ckeditor/ckeditor5-build-classic' | |
const CKExampleComponent = () => { | |
return (<CKEditor | |
editor={ClassicEditor} |
!!! Check out the official documentation of CKEditort first https://ckeditor.com/docs/ckeditor4/latest/guide/dev_angular.html.
yarn add ckeditor4-angular
.CKEditorModule
to your application.editorData
and method onChange
into code behind (See example in your.component.ts
file).ckeditor
into your HTML markup (See example in your.component.html
file).Basic skeleton preparation:
src/app/modules
. (!!!Except auth, i18n and errors folders).src/app/pages/routing.ts file
. [9-45] rows.src/app/pages/dashboard.component.html
file.src/app/pages/dashboard.module.ts
file (!remove WidgetsModule from the code, rows [5, 17].src/_metronic/partials/content/widgets
folder and the file src/app/_metronic/partials/index.ts
file comment row [3].src/app/_metronic/layout/components/aside/aside-menu/aside-menu.component.html
. Keep only Dashboard menu item. (For demo1 also need to clear src/app/_metronic/layout/components/sidebar/sidebar-menu/sidebar-menu.component.html
file)src/app/_metronic/layout/components/header/header-menu/header-menu.component.html
. Keep only dashboard menu item.