-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version 1.0.119. Read more https://github.com/xdan/jodit/releases…
- Loading branch information
1 parent
147b70d
commit 2356002
Showing
6 changed files
with
3,374 additions
and
2,388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.