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
|
||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||
|
||||
border-top-width
|
||||
border-right-width
|
||||
border-bottom-width
|
||||
border-left-width
|
||||
|
||||
border-top-color
|
||||
border-right-color
|
||||
border-bottom-color
|
||||
border-left-color
|
||||
border-top-width border-right-width border-bottom-width border-left-width
|
||||
border-top-color border-right-color border-bottom-color border-left-color
|
||||
border-top-style border-right-style border-bottom-style border-left-style
|
||||
],
|
||||
'th' => %w[
|
||||
background background-color color font-size vertical-align
|
||||
|
@ -81,15 +75,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
|||
text-align
|
||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||
|
||||
border-top-width
|
||||
border-right-width
|
||||
border-bottom-width
|
||||
border-left-width
|
||||
|
||||
border-top-color
|
||||
border-right-color
|
||||
border-bottom-color
|
||||
border-left-color
|
||||
border-top-width border-right-width border-bottom-width border-left-width
|
||||
border-top-color border-right-color border-bottom-color border-left-color
|
||||
border-top-style border-right-style border-bottom-style border-left-style
|
||||
],
|
||||
'tr' => %w[
|
||||
background background-color color font-size vertical-align
|
||||
|
@ -98,15 +86,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
|||
text-align
|
||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||
|
||||
border-top-width
|
||||
border-right-width
|
||||
border-bottom-width
|
||||
border-left-width
|
||||
|
||||
border-top-color
|
||||
border-right-color
|
||||
border-bottom-color
|
||||
border-left-color
|
||||
border-top-width border-right-width border-bottom-width border-left-width
|
||||
border-top-color border-right-color border-bottom-color border-left-color
|
||||
border-top-style border-right-style border-bottom-style border-left-style
|
||||
],
|
||||
'td' => %w[
|
||||
background background-color color font-size vertical-align
|
||||
|
@ -115,15 +97,9 @@ Rails.application.config.html_sanitizer_css_properties_whitelist = {
|
|||
text-align
|
||||
border border-top border-right border-bottom border-left border-collapse border-style border-spacing
|
||||
|
||||
border-top-width
|
||||
border-right-width
|
||||
border-bottom-width
|
||||
border-left-width
|
||||
|
||||
border-top-color
|
||||
border-right-color
|
||||
border-bottom-color
|
||||
border-left-color
|
||||
border-top-width border-right-width border-bottom-width border-left-width
|
||||
border-top-color border-right-color border-bottom-color border-left-color
|
||||
border-top-style border-right-style border-bottom-style border-left-style
|
||||
],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue