replace ng-include by custom dom node

This fixes previewing newly to be added comments. However, I am not certain why the fix is working. Before it, the customEditorController was referenced correctly leading to togglePreview() not being defined when it should.
pull/3701/head
Jens Ulferts 9 years ago
parent 4259f340d5
commit 3e35747204
  1. 3
      frontend/app/templates/work_packages/comment_field.html

@ -18,8 +18,9 @@
</div>
<div class="inplace-edit--write edit-strategy-comment" ng-show="fieldController.isEditing">
<form class="inplace-edit--form" ng-if="fieldController.isEditing" name="fieldController.editForm" ng-submit="fieldController.submit(false)" novalidate>
<div class="inplace-edit--write-value" ng-include="'/components/inplace-edit/directives/field-edit/edit-wiki-textarea/edit-wiki-textarea.directive.html'"
<div class="inplace-edit--write-value"
ng-click="fieldController.markActive()" tabindex="-1">
<inplace-editor-wiki-textarea> </inplace-editor-wiki-textarea>
</div>
<div class="inplace-edit--dashboard">
<div class="inplace-edit--controls" ng-hide="fieldController.state.isBusy || !fieldController.isActive()">

Loading…
Cancel
Save