我在角度xeditable表单中使用带有editableTextAngular指令的text-angular,当进入编辑模式时,文本容器变为无穷大。
这是我的CSS:
.ta-editor {
min-height: 300px;
height: auto;
overflow: auto;
font-family: inherit;
font-size: 100%;
margin:20px 0;
}
查看模式&编辑模式: In view mode it is shown correctly. In edit mode the text container goes outside the screen.
这是我的HTML:
<div class="form-group" style="width: 100%;margin-top: 10px;">
<span
editable-text-angular="notificacion.texto"
data-e-name="notificacion.texto"
data-e-class="editable-text-angular"
ng-bind-html="notificacion.texto"
>
{{notificacion.texto}}
</span>
</div>