ordars_rails_editor 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/ordars_rails_editor/sanitizer.rb +4 -2
- data/lib/ordars_rails_editor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc3c66c719d679166157bd98ec37ba4cc1d0f1ccb48f8bcdf26db8e80bf594d3
|
|
4
|
+
data.tar.gz: 29ba4d427881a0c9dc76a80f8e27d403ebef688cec81f612d302f0700644e6fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65b4b56708ee64328e05c9232cd23a915804a4c282b47332c4741a25ba094a9beaaadf174800e12240ca276d40b5033b6e008f201ecdac25026f6d97e584490f
|
|
7
|
+
data.tar.gz: 63ef18f75cb695c9884b0acbbd50124e1e59ba581f926ad2ebcc4e81a481f7b89198ab7f4c50bee7b7382e5d38b0393c3ceba0122b4f5a78f575df9025a6c9fb
|
|
@@ -10,8 +10,10 @@ module OrdarsRailsEditor
|
|
|
10
10
|
#
|
|
11
11
|
# style 속성은 통째 허용하지 않고 «속성 단위»로 거른다(color/background-color/font-size/text-align).
|
|
12
12
|
module Sanitizer
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
# ⚠에디터 서식과 «한 쌍» — mark=형광펜(Highlight), data-color=Highlight 색 속성(0.1.1 에서 누락 실사고:
|
|
14
|
+
# 형광펜 적용 글이 저장 시 조용히 벗겨짐).
|
|
15
|
+
ALLOWED_TAGS = %w[p br strong b em i s del u code pre blockquote ul ol li h1 h2 h3 hr a img span mark].freeze
|
|
16
|
+
ALLOWED_ATTRIBUTES = %w[href target rel src alt width height style data-file-id data-color].freeze
|
|
15
17
|
ALLOWED_STYLE_PROPS = %w[color background-color font-size text-align].freeze
|
|
16
18
|
ALLOWED_URI_SCHEMES = %w[http https mailto tel].freeze
|
|
17
19
|
|