所见即所得Angular不能加空格(Text-Angular)

WYSIWYG Angular can't add spaces (Text-Angular)

我正在使用 WYSIWYG 编辑器 (text-angular),我无法用 space 栏创建白色 space。但是我可以用 alt+space 写一个 whitespace。我是否缺少任何配置?

我已经尝试使用

ng-trim="false"

但是没有效果

这是我使用文本的地方-angular。

<div data-ng-if="translation.multiline"
     text-angular="text-angular"
     placeholder="no translation provided"
     name="translation-{{translation.language}}-{{item.key}}"
     data-esc-key="resetField(translationsForm, 'translation-{{translation.language}}-{{item.key}}')"
     class="no-tinymce-plz form-control translation-strings" cols="40" rows="{{item.rows}}"
     data-ng-model="translation.translated" ng-model-options="{ updateOn: 'blur' }"
     data-ng-change="updateField(translation.language,item.key,translation.translated)">
</div>

您是否将 text-angular HTML header 下输出的内容粘贴到您自己的应用程序中?查看是否有任何 css 类 正在影响 div(例如使用 chrome 检查器)。 Text-Angular 只是在段落标签之间放置一个 space 字符,这对所有浏览器都不是 100% 有效。

添加 space 个字符的更好方法可能是使用 nbsp;在您的 html 中,您希望 space 出现或只是将内容与 css 对齐。