Merge pull request #4387 from BrokenEagle/embedded-note-alignment
Add additional settable attributes for embedded notes alignment
This commit is contained in:
@@ -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 "";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user