Skip to content

Commit

Permalink
New version 1.0.119. Read more https://github.com/xdan/jodit/releases…
Browse files Browse the repository at this point in the history
  • Loading branch information
MrElectroNick committed Jan 25, 2021
1 parent 147b70d commit 2356002
Show file tree
Hide file tree
Showing 6 changed files with 3,374 additions and 2,388 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit-angular",
"version": "1.0.118",
"version": "1.0.119",
"description": "Angular Jodit Component",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -52,15 +52,15 @@
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/router": "^8.2.14",
"core-js": "^2.6.5",
"jodit": "^3.2.38",
"rxjs": "^6.3.3",
"jodit": "^3.5.4",
"rxjs": "^6.4.0",
"tslib": "^1.10.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.803.24",
"@angular-devkit/build-ng-packagr": "~0.803.24",
"@angular/cli": "8.3.24",
"@angular-devkit/build-angular": "~0.803.29",
"@angular-devkit/build-ng-packagr": "~0.803.29",
"@angular/cli": "8.3.29",
"@angular/compiler-cli": "^8.2.14",
"@angular/language-service": "^8.2.14",
"@types/jasmine": "^2.8.9",
Expand Down
6 changes: 5 additions & 1 deletion projects/jodit-angular-app/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<jodit-editor #editor [config]="config" (onBeforeEnter)="handleEvent($event)"></jodit-editor>
<jodit-editor #editor
[(ngModel)]="content" [ngModelOptions]="{standalone: true}"
[config]="config"
(onBeforeEnter)="handleEvent($event)"
></jodit-editor>
32 changes: 18 additions & 14 deletions projects/jodit-angular-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import {Component} from '@angular/core';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
title = 'app';

config = {
readonly: true,
toolbarAdaptive: false,
buttons: [
'source'
]
};
content = '<h1>Hello world</h1>';

handleEvent($event: any) {
return false;
}
config = {
// readonly: false,
// toolbarAdaptive: false,
// useAceEditor: false,
// sourceEditor: 'area'
// buttons: [
// 'source'
// ]
};

handleEvent($event: any) {
return false;
}
}
10 changes: 6 additions & 4 deletions projects/jodit-angular-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { JoditAngularModule } from 'jodit-angular';
import {FormsModule} from '@angular/forms';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
JoditAngularModule
],
imports: [
BrowserModule,
JoditAngularModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
Expand Down
4 changes: 2 additions & 2 deletions projects/jodit-angular-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit-angular",
"version": "1.0.119",
"version": "1.0.120",
"peerDependencies": {
"@angular/common": "^7.0.0 || ^8.0.0 || ^9.0.0-0",
"@angular/core": "^7.0.0 || ^8.0.0 || ^9.0.0-0",
Expand All @@ -11,7 +11,7 @@
"@angular/platform-browser-dynamic": "^7.0.0 || ^8.0.0 || ^9.0.0-0",
"@angular/router": "^7.0.0 || ^8.0.0 || ^9.0.0-0",
"core-js": "^2.6.5",
"jodit": "^3.2.38",
"jodit": "^3.5.4",
"rxjs": "^6.3.3",
"tslib": "^1.10.0",
"zone.js": "~0.9.1"
Expand Down
Loading

0 comments on commit 2356002

Please sign in to comment.