]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.html
359128cee8d1b36d110ed970529df82263eff9ba
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / marc-edit / editable-content.component.html
1
2 <ng-container *ngIf="bigText">
3   <div contenteditable
4     id='{{randId}}' 
5     spellcheck="false"
6     class="d-inline-block text-dark text-break {{moreClasses}}"
7     [attr.tabindex]="fieldText ? -1 : ''"
8     [egContextMenu]="contextMenuEntries()"
9     (menuItemSelected)="contextMenuChange($event.value)"
10     (keydown)="inputKeyDown($event)"
11     (focus)="selectText()"
12     (blur)="inputBlurred()"
13     (input)="bigTextValueChange()">
14   </div>
15 </ng-container>
16
17 <ng-container *ngIf="!bigText">
18   <input 
19     id='{{randId}}' 
20     spellcheck="false"
21     class="text-dark rounded-0 form-control {{moreClasses}}"
22     [size]="inputSize()" 
23     [maxlength]="maxLength || ''"
24     [disabled]="fieldText" 
25     [attr.tabindex]="fieldText ? -1 : ''"
26     [egContextMenu]="contextMenuEntries()"
27     (menuItemSelected)="contextMenuChange($event.value)"
28     (keydown)="inputKeyDown($event)"
29     (focus)="selectText()"
30     (blur)="inputBlurred()"
31     [ngModel]="getContent()"
32     (ngModelChange)="setContent($event)"
33   />
34 </ng-container>
35