mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: transparent color should be treated as a highlight color
This commit is contained in:
parent
d75645c4bc
commit
04e14c6bba
@ -255,7 +255,9 @@ List<ToolbarItem> defaultToolbarItems = [
|
||||
highlightCallback: (editorState) => _allSatisfy(
|
||||
editorState,
|
||||
BuiltInAttributeKey.backgroundColor,
|
||||
(value) => value != null,
|
||||
(value) {
|
||||
return value != null && value != '0x00000000'; // transparent color;
|
||||
},
|
||||
),
|
||||
handler: (editorState, context) => formatHighlight(
|
||||
editorState,
|
||||
|
Loading…
Reference in New Issue
Block a user