OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/inplace-edit/directives/field-edit/edit-wiki-textarea/edit-wiki-textarea.directiv...

24 lines
1023 B

<div class="textarea-wrapper" ng-class="{'-preview': customEditorController.isPreview}">
<label
class="hidden-for-sighted"
for="inplace-edit--write-value--{{::field.name}}">
{{::field.getLabel()}}
</label>
<textarea
wiki-toolbar
style="min-height: 114px"
msd-elastic="\n"
class="focus-input inplace-edit--textarea -animated"
id="inplace-edit--write-value--{{::field.name}}"
ng-hide="customEditorController.isPreview && !fieldController.state.isBusy"
preview-toggle="customEditorController.togglePreview()"
name="value"
ng-disabled="fieldController.state.isBusy"
ng-required="fieldController.isRequired"
ng-model="field.value.raw"
title="{{ fieldController.editTitle }}">
</textarea>
<div class="inplace-edit--preview" ng-if="customEditorController.isPreview && !fieldController.state.isBusy">
<span ng-bind-html="customEditorController.previewHtml"></span>
</div>
</div>