Add alignment attributes for embedded notes
- justify-conent is for L-R alignment - align-items is for T-B alignment
This commit is contained in:
@@ -4,7 +4,7 @@ import Utility from './utility'
|
|||||||
let Note = {
|
let Note = {
|
||||||
HIDE_DELAY: 250,
|
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'],
|
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) {
|
permitted_style_values: function(attribute, $attribute_child) {
|
||||||
if ($attribute_child.length === 0) {
|
if ($attribute_child.length === 0) {
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ module NoteSanitizer
|
|||||||
}
|
}
|
||||||
|
|
||||||
ALLOWED_PROPERTIES = %w(
|
ALLOWED_PROPERTIES = %w(
|
||||||
|
align-items
|
||||||
background background-color
|
background background-color
|
||||||
border border-color border-image border-radius border-style border-width
|
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
|
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
|
float
|
||||||
font font-family font-size font-size-adjust font-style font-variant font-weight
|
font font-family font-size font-size-adjust font-style font-variant font-weight
|
||||||
height width
|
height width
|
||||||
|
justify-content
|
||||||
letter-spacing
|
letter-spacing
|
||||||
line-height
|
line-height
|
||||||
list-style list-style-position list-style-type
|
list-style list-style-position list-style-type
|
||||||
|
|||||||
Reference in New Issue
Block a user