@roottale/cms-core 0.61.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @roottale/cms-core
2
2
 
3
+ ## 0.62.0
4
+
5
+ ## 0.61.1
6
+
7
+ ### Patch Changes
8
+
9
+ - HTML 정화 후에도 이미지와 사진 설명의 좌우 자동 여백과 블록 배치를 유지해
10
+ 에디터의 이미지 정렬이 미리보기와 HTML 기반 사이트에서 동일하게 표시되도록 합니다.
11
+
3
12
  ## 0.61.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1447,6 +1447,16 @@ var SANITIZE_OPTIONS = {
1447
1447
  "*": [ROOTTALE_CLASS_RE]
1448
1448
  },
1449
1449
  allowedStyles: {
1450
+ img: {
1451
+ display: [/^block$/i],
1452
+ "margin-left": [CSS_LENGTH_RE, /^auto$/i],
1453
+ "margin-right": [CSS_LENGTH_RE, /^auto$/i]
1454
+ },
1455
+ figure: {
1456
+ display: [/^block$/i],
1457
+ "margin-left": [CSS_LENGTH_RE, /^auto$/i],
1458
+ "margin-right": [CSS_LENGTH_RE, /^auto$/i]
1459
+ },
1450
1460
  "*": {
1451
1461
  "aspect-ratio": [ASPECT_RATIO_RE],
1452
1462
  background: [HEX_COLOR_RE],