我使用ngx-quill-editor作为我的角度应用程序的富文本编辑器。在使用语言工具chrome扩展时,我没有按照预期获得Quill的Value。否则它工作正常。
我没有发现任何针对使用语言工具支持quill编辑器的问题。
我在使用语言工具时从quill编辑器获得的值是这样的:
<lt-div spellcheck="false" class="lt-highlighter__wrapper" style="width: 538px; height: 155px;"><canvas class="lt-highlighter__canvas" width="538" height="155" style="margin-top: 0px !important; margin-left: 0px !important;"></canvas></lt-div>
当用户在编辑器中键入“Hello world”时,我应该得到一个类似的值
你好,世界
But I am not getting value as expected.您可以将样式作为属性提供,如下所示:
<quill-editor name="content" [modules]="{toolbar: toolBarOptions}" [style]="{height: '300px'}"></quill-editor>
注意toolbarOptions是相关打字稿中的对象