PrimeFaces

问题描述 投票:1回答:1

在PrimeFaces 8中,使用<p:textEditor组件时,仅通过指定secure='false'禁用它和secure='true'启用它,似乎可以启用/禁用HMTML -sanitizer。我试图像这样在PrimeFaces 7.0中禁用它:

  <p:textEditor id="quillToolbarId" secure='false' widgetVar="editor2" height="300" value="#{editTemplatesBean.kaufAnbotTemplate}" placeholder="Enter your content">

但是消毒剂似乎仍然可以工作。

[我的问题是,每当我在primeFaces p:textEditor中格式化文本以使其居中对齐时,HTML清理程序都会删除我的格式,因此文本最终将不进行格式化。

解决此问题的一种方法是直接使用Quill而不是清理输入。这可行,但是随后我遇到了其他问题,例如这个问题:

https://github.com/quilljs/quill/issues/1379

这也需要解决。

请帮助!

primefaces jsf-2.2 quill html-sanitizing
1个回答
1
投票
© www.soinside.com 2019 - 2024. All rights reserved.