This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Update ueditor.config.js. 修复由于XSSFilter导致的设置的背景在查看源码和预览时无效#3213
Open
liulixingyun wants to merge 1 commit intofex-team:dev-1.4.3.3from
Open
Update ueditor.config.js. 修复由于XSSFilter导致的设置的背景在查看源码和预览时无效#3213liulixingyun wants to merge 1 commit intofex-team:dev-1.4.3.3from
liulixingyun wants to merge 1 commit intofex-team:dev-1.4.3.3from
Conversation
修复由于XSSFilter导致的设置的背景在查看源码和预览时无效,尤其是查看源码回到正常状态会使设置的背景消失的bug。在XSSFilter的whitList中为```<p>```标签添加```data-background```规则。 ueditor将设置的北京信息存放在一个空的```<p>```标签的```data-background```属性上,XSSFilter过滤了这个属性,所以导致背景无效。
|
1.4.3.3版本 设置背景后 预览可以正常显示,但是getcontent时,无法获取背景。html查看后,背景被重置了。有没有解决方案? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复由于XSSFilter导致的设置的背景在查看源码和预览时无效,尤其是查看源码回到正常状态会使设置的背景消失的bug。在XSSFilter的whitList中为
<p>标签添加data-background规则。ueditor将设置的背景信息存放在一个空的
<p>标签的data-background属性上,XSSFilter过滤了这个属性,所以导致背景无效。