draft-js-utils
draft-js-utils copied to clipboard
InlineStyles
I've got a problem with using inline-styles. Fonts and colors are processed corretly, but font-size and text-align don't work.
Example:
let options = {
inlineStyles: {
//sizes
'Medium': {element: "size", attributes: {size: 3}},
//align
'Left': {element: "family", attributes: {align: "Left"}},
},
};
stateToHTML(this.editor.content, options);
It igonres "medium" and "left" properties. Is it bug or I'm doing something wrong?
I am facing a similar problem for me I am not passing any options param to stateToHTML function but do not get any inline styles. All the elements are exported to HTML but there is no inline style for any of the element. Can you suggest what I should do?
i have the same problem
I just reported #120 and it sounds similar to this. You claim "colors are processed correctly" but I don't actually have that experience. Can you show me how you got colors to load?