-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
43 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,89 +1,99 @@ | ||
<div class="ngx-editor" id="ngxEditor" [style.width]="config['width']" [style.minWidth]="config['minWidth']"> | ||
<div class="toolbar"> | ||
<div class="set"> | ||
<button *ngIf="canEnableToolbarOptions('bold')" (click)="executeCommand('bold')" title="Bold"> | ||
<div class="ngx-toolbar"> | ||
<div class="ngx-toolbar-set"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('bold')" (click)="executeCommand('bold')" title="Bold"> | ||
<i class="fa fa-bold" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('italic')" (click)="executeCommand('italic')" title="Italic"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('italic')" (click)="executeCommand('italic')" title="Italic"> | ||
<i class="fa fa-italic" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('underline')" (click)="executeCommand('underline')" title="Underline"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('underline')" (click)="executeCommand('underline')" title="Underline"> | ||
<i class="fa fa-underline" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('strikeThrough')" (click)="executeCommand('strikeThrough')" title="Strikethrough"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('strikeThrough')" (click)="executeCommand('strikeThrough')" | ||
title="Strikethrough"> | ||
<i class="fa fa-strikethrough" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('superscript')" (click)="executeCommand('superscript')" title="Superscript"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('superscript')" (click)="executeCommand('superscript')" | ||
title="Superscript"> | ||
<i class="fa fa-superscript" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('subscript')" (click)="executeCommand('subscript')" title="Subscript"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('subscript')" (click)="executeCommand('subscript')" title="Subscript"> | ||
<i class="fa fa-subscript" aria-hidden="true"></i> | ||
</button> | ||
</div> | ||
<div class="set"> | ||
<button *ngIf="canEnableToolbarOptions('justifyLeft')" (click)="executeCommand('justifyLeft')" title="Justify Left"> | ||
<div class="ngx-toolbar-set"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('justifyLeft')" (click)="executeCommand('justifyLeft')" | ||
title="Justify Left"> | ||
<i class="fa fa-align-left" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('justifyCenter')" (click)="executeCommand('justifyCenter')" title="Justify Center"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('justifyCenter')" (click)="executeCommand('justifyCenter')" | ||
title="Justify Center"> | ||
<i class="fa fa-align-center" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('justifyRight')" (click)="executeCommand('justifyRight')" title="Justify Right"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('justifyRight')" (click)="executeCommand('justifyRight')" | ||
title="Justify Right"> | ||
<i class="fa fa-align-right" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('justifyFull')" (click)="executeCommand('justifyFull')" title="Justify"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('justifyFull')" (click)="executeCommand('justifyFull')" | ||
title="Justify"> | ||
<i class="fa fa-align-justify" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('indent')" (click)="executeCommand('indent')" title="Indent"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('indent')" (click)="executeCommand('indent')" title="Indent"> | ||
<i class="fa fa-indent" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('outdent')" (click)="executeCommand('outdent')" title="Outdent"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('outdent')" (click)="executeCommand('outdent')" title="Outdent"> | ||
<i class="fa fa-outdent" aria-hidden="true"></i> | ||
</button> | ||
</div> | ||
<div class="set"> | ||
<button *ngIf="canEnableToolbarOptions('cut')" (click)="executeCommand('cut')" title="Cut"> | ||
<div class="ngx-toolbar-set"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('cut')" (click)="executeCommand('cut')" title="Cut"> | ||
<i class="fa fa-scissors" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('copy')" (click)="executeCommand('copy')" title="Copy"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('copy')" (click)="executeCommand('copy')" title="Copy"> | ||
<i class="fa fa-files-o" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('delete')" (click)="executeCommand('delete')" title="Delete"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('delete')" (click)="executeCommand('delete')" title="Delete"> | ||
<i class="fa fa-trash" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('removeFormat')" (click)="executeCommand('removeFormat')" title="Clear Formatting"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('removeFormat')" (click)="executeCommand('removeFormat')" | ||
title="Clear Formatting"> | ||
<i class="fa fa-eraser" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('undo')" (click)="executeCommand('undo')" title="Undo"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('undo')" (click)="executeCommand('undo')" title="Undo"> | ||
<i class="fa fa-undo" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('redo')" (click)="executeCommand('redo')" title="Redo"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('redo')" (click)="executeCommand('redo')" title="Redo"> | ||
<i class="fa fa-repeat" aria-hidden="true"></i> | ||
</button> | ||
</div> | ||
<div class="set"> | ||
<button *ngIf="canEnableToolbarOptions('paragraph')" (click)="executeCommand('insertParagraph')" title="Paragraph"> | ||
<div class="ngx-toolbar-set"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('paragraph')" (click)="executeCommand('insertParagraph')" | ||
title="Paragraph"> | ||
<i class="fa fa-paragraph" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('blockquote')" (click)="blockQuote()" title="Blockquote"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('blockquote')" (click)="blockQuote()" title="Blockquote"> | ||
<i class="fa fa-quote-left" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('removeBlockquote')" (click)="removeQuote()" title="Remove Blockquote"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('removeBlockquote')" (click)="removeQuote()" title="Remove Blockquote"> | ||
<i class="fa fa-quote-right" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('horizontalLine')" (click)="executeCommand('insertHorizontalRule')" title="Horizontal Line"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('horizontalLine')" (click)="executeCommand('insertHorizontalRule')" | ||
title="Horizontal Line"> | ||
<i class="fa fa-minus" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('orderedList')" (click)="executeCommand('insertUnorderedList')" title="Unodered List"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('orderedList')" (click)="executeCommand('insertUnorderedList')" | ||
title="Unodered List"> | ||
<i class="fa fa-list-ul" aria-hidden="true"></i> | ||
</button> | ||
<button *ngIf="canEnableToolbarOptions('unorderedList')" (click)="executeCommand('insertOrderedList')" title="Ordered List"> | ||
<button class="ngx-editor-button" *ngIf="canEnableToolbarOptions('unorderedList')" (click)="executeCommand('insertOrderedList')" | ||
title="Ordered List"> | ||
<i class="fa fa-list-ol" aria-hidden="true"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="textarea ngx-textarea" [attr.contenteditable]="config['editable']" [attr.placeholder]="config['placeholder']" | ||
(input)="html = $event.target.innerHTML; htmlContentChange($event.target.innerHTML)" [attr.translate]="config['translate']" | ||
[attr.spellcheck]="config['spellcheck']" [style.height]="config['height']" [style.minHeight]="minHeight || config['minHeight']" | ||
<div class="ngx-editor-textarea" [attr.contenteditable]="config['editable']" [attr.placeholder]="config['placeholder']" (input)="html = $event.target.innerHTML; htmlContentChange($event.target.innerHTML)" | ||
[attr.translate]="config['translate']" [attr.spellcheck]="config['spellcheck']" [style.height]="config['height']" [style.minHeight]="minHeight || config['minHeight']" | ||
[style.resize]="canResize()" #ngxTextArea></div> | ||
<app-ngx-grippie *ngIf="resizer === 'stack'"></app-ngx-grippie> | ||
</div> |
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
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,4 +1,4 @@ | ||
.grippie { | ||
.ngx-editor-grippie { | ||
height: 9px; | ||
background-color: #f1f1f1; | ||
position: relative; | ||
|