Force ltr on code inputs
This commit is contained in:
parent
15c2303489
commit
d430862f00
|
@ -94,7 +94,7 @@
|
||||||
</my-help>
|
</my-help>
|
||||||
|
|
||||||
<textarea
|
<textarea
|
||||||
id="customizationJavascript" formControlName="javascript" class="form-control"
|
id="customizationJavascript" formControlName="javascript" class="form-control" dir="ltr"
|
||||||
[ngClass]="{ 'input-error': formErrors['instance.customizations.javascript'] }"
|
[ngClass]="{ 'input-error': formErrors['instance.customizations.javascript'] }"
|
||||||
></textarea>
|
></textarea>
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ color: red;
|
||||||
</my-help>
|
</my-help>
|
||||||
|
|
||||||
<textarea
|
<textarea
|
||||||
id="customizationCSS" formControlName="css" class="form-control"
|
id="customizationCSS" formControlName="css" class="form-control" dir="ltr"
|
||||||
[ngClass]="{ 'input-error': formErrors['instance.customizations.css'] }"
|
[ngClass]="{ 'input-error': formErrors['instance.customizations.css'] }"
|
||||||
></textarea>
|
></textarea>
|
||||||
<div *ngIf="formErrors.instance.customizations.css" class="form-error">{{ formErrors.instance.customizations.css }}</div>
|
<div *ngIf="formErrors.instance.customizations.css" class="form-error">{{ formErrors.instance.customizations.css }}</div>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
name="instanceCustomHomepageContent" formControlName="content"
|
name="instanceCustomHomepageContent" formControlName="content"
|
||||||
[customMarkdownRenderer]="getCustomMarkdownRenderer()" [debounceTime]="500"
|
[customMarkdownRenderer]="getCustomMarkdownRenderer()" [debounceTime]="500"
|
||||||
[formError]="formErrors['instanceCustomHomepage.content']"
|
[formError]="formErrors['instanceCustomHomepage.content']"
|
||||||
|
dir="ltr"
|
||||||
></my-markdown-textarea>
|
></my-markdown-textarea>
|
||||||
|
|
||||||
<div *ngIf="formErrors.instanceCustomHomepage.content" class="form-error">{{ formErrors.instanceCustomHomepage.content }}</div>
|
<div *ngIf="formErrors.instanceCustomHomepage.content" class="form-error">{{ formErrors.instanceCustomHomepage.content }}</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
[(ngModel)]="content" (ngModelChange)="onModelChange()"
|
[(ngModel)]="content" (ngModelChange)="onModelChange()"
|
||||||
class="form-control" [ngClass]="{ 'input-error': formError }"
|
class="form-control" [ngClass]="{ 'input-error': formError }"
|
||||||
[attr.disabled]="disabled || null"
|
[attr.disabled]="disabled || null"
|
||||||
[id]="name" [name]="name">
|
[id]="name" [name]="name" [dir]="dir">
|
||||||
</textarea>
|
</textarea>
|
||||||
|
|
||||||
<div ngbNav #nav="ngbNav" class="nav-pills nav-preview">
|
<div ngbNav #nav="ngbNav" class="nav-pills nav-preview">
|
||||||
|
|
|
@ -37,6 +37,8 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
|
||||||
|
|
||||||
@Input() name = 'description'
|
@Input() name = 'description'
|
||||||
|
|
||||||
|
@Input() dir: string
|
||||||
|
|
||||||
@ViewChild('textarea') textareaElement: ElementRef
|
@ViewChild('textarea') textareaElement: ElementRef
|
||||||
@ViewChild('previewElement') previewElement: ElementRef
|
@ViewChild('previewElement') previewElement: ElementRef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue