Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InlineStyles #69

Open
Nikcrysis opened this issue Feb 8, 2017 · 3 comments
Open

InlineStyles #69

Nikcrysis opened this issue Feb 8, 2017 · 3 comments

Comments

@Nikcrysis
Copy link

Nikcrysis commented Feb 8, 2017

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?

@zeeshanjan82
Copy link

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?

@ileonovdima
Copy link

i have the same problem

@sontek
Copy link

sontek commented Nov 29, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants