Skip to content

Text alignment not working #6

@Dinothan-IdeaBits

Description

@Dinothan-IdeaBits

My draftjs block look like this:

{
"key": "6daf",
"text": "Title of the para",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 17,
"style": "color-rgb(0,0,0)"
},
{
"offset": 0,
"length": 17,
"style": "bgcolor-rgb(255,255,255)"
},
{
"offset": 0,
"length": 17,
"style": "fontfamily-Open Sans", sans-serif"
},
{
"offset": 0,
"length": 17,
"style": "BOLD"
},
{
"offset": 0,
"length": 17,
"style": "UNDERLINE"
},
{
"offset": 0,
"length": 17,
"style": "fontsize-18"
}
],
"entityRanges": [],
"data": {
"text-align": "center"
}
}

Text alignment is center. but when convert to StateToPdfMake using "draft-js-export-pdfmake", text not align center.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions