You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
This looks like it is intentional.
Inside encodeInlineStyleRanges:
function encodeInlineStyleRanges(block) {
var styleList = block.getCharacterList().map(function(c) {
return c.getStyle();
}).toList();
var styles = Object.keys(DefaultDraftInlineStyle);
var ranges = styles.map(function(style) {
return getEncodedInlinesForType(block, styleList, style);
});
return Array.prototype.concat.apply(EMPTY_ARRAY, ranges);
}
customStyleMap styles are simply not saved.
A simple solution would be to pass the customStyleMap as a second parameter to convertToRaw(), since the customStyleMap lives only inside the react component.
The text was updated successfully, but these errors were encountered:
This looks like it is intentional.
Inside encodeInlineStyleRanges:
customStyleMap styles are simply not saved.
A simple solution would be to pass the customStyleMap as a second parameter to convertToRaw(), since the customStyleMap lives only inside the react component.
The text was updated successfully, but these errors were encountered: