Merge pull request #4387 from BrokenEagle/embedded-note-alignment

Add additional settable attributes for embedded notes alignment
This commit is contained in:
evazion
2020-04-04 02:20:24 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ import Utility from './utility'
let Note = {
HIDE_DELAY: 250,
NORMALIZE_ATTRIBUTES: ['letter-spacing', 'line-height', 'margin-left', 'margin-right', 'margin-top', 'margin-bottom', 'padding-left', 'padding-right', 'padding-top', 'padding-bottom'],
COPY_ATTRIBUTES: ['background-color', 'border-radius', 'transform'],
COPY_ATTRIBUTES: ['background-color', 'border-radius', 'transform', 'justify-content', 'align-items'],
permitted_style_values: function(attribute, $attribute_child) {
if ($attribute_child.length === 0) {
return "";

View File

@@ -14,6 +14,7 @@ module NoteSanitizer
}
ALLOWED_PROPERTIES = %w(
align-items
background background-color
border border-color border-image border-radius border-style border-width
border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width
@@ -29,6 +30,7 @@ module NoteSanitizer
float
font font-family font-size font-size-adjust font-style font-variant font-weight
height width
justify-content
letter-spacing
line-height
list-style list-style-position list-style-type