Improved past in from word/excel (also allow border-style in backend).
This commit is contained in:
parent
cef163fcc0
commit
a7b65d473a
1 changed files with 12 additions and 36 deletions
|
@ -64,15 +64,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
||||||
text-align
|
text-align
|
||||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||||
|
|
||||||
border-top-width
|
border-top-width border-right-width border-bottom-width border-left-width
|
||||||
border-right-width
|
border-top-color border-right-color border-bottom-color border-left-color
|
||||||
border-bottom-width
|
border-top-style border-right-style border-bottom-style border-left-style
|
||||||
border-left-width
|
|
||||||
|
|
||||||
border-top-color
|
|
||||||
border-right-color
|
|
||||||
border-bottom-color
|
|
||||||
border-left-color
|
|
||||||
],
|
],
|
||||||
'th' => %w[
|
'th' => %w[
|
||||||
background background-color color font-size vertical-align
|
background background-color color font-size vertical-align
|
||||||
|
@ -81,15 +75,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
||||||
text-align
|
text-align
|
||||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||||
|
|
||||||
border-top-width
|
border-top-width border-right-width border-bottom-width border-left-width
|
||||||
border-right-width
|
border-top-color border-right-color border-bottom-color border-left-color
|
||||||
border-bottom-width
|
border-top-style border-right-style border-bottom-style border-left-style
|
||||||
border-left-width
|
|
||||||
|
|
||||||
border-top-color
|
|
||||||
border-right-color
|
|
||||||
border-bottom-color
|
|
||||||
border-left-color
|
|
||||||
],
|
],
|
||||||
'tr' => %w[
|
'tr' => %w[
|
||||||
background background-color color font-size vertical-align
|
background background-color color font-size vertical-align
|
||||||
|
@ -98,15 +86,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
||||||
text-align
|
text-align
|
||||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||||
|
|
||||||
border-top-width
|
border-top-width border-right-width border-bottom-width border-left-width
|
||||||
border-right-width
|
border-top-color border-right-color border-bottom-color border-left-color
|
||||||
border-bottom-width
|
border-top-style border-right-style border-bottom-style border-left-style
|
||||||
border-left-width
|
|
||||||
|
|
||||||
border-top-color
|
|
||||||
border-right-color
|
|
||||||
border-bottom-color
|
|
||||||
border-left-color
|
|
||||||
],
|
],
|
||||||
'td' => %w[
|
'td' => %w[
|
||||||
background background-color color font-size vertical-align
|
background background-color color font-size vertical-align
|
||||||
|
@ -115,15 +97,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
||||||
text-align
|
text-align
|
||||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||||
|
|
||||||
border-top-width
|
border-top-width border-right-width border-bottom-width border-left-width
|
||||||
border-right-width
|
border-top-color border-right-color border-bottom-color border-left-color
|
||||||
border-bottom-width
|
border-top-style border-right-style border-bottom-style border-left-style
|
||||||
border-left-width
|
|
||||||
|
|
||||||
border-top-color
|
|
||||||
border-right-color
|
|
||||||
border-bottom-color
|
|
||||||
border-left-color
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue