imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
185 stars 72 forks source link

i have custom my inline style and its not working or showing the way i want it like in html #103

Open nugrohoaaldi opened 1 year ago

nugrohoaaldi commented 1 year ago
const data = `<body style="margin: 0 !important;">
            <img 
                style="
                border-radius: 18px !important;
                width: 100% !important;
                "
                src="https://media.istockphoto.com/id/490673902/photo/roundabout-hi-jakarta-landmark-at-night.jpg?s=612x612&w=0&k=20&c=bv93EvZ7xJSCxfPXFbHKW_3VMi3lPmMB4Yym8fh_bfE=" alt="img">
            <div style="display: flex !important; flex-direction: row !important; justify-content: space-between !important;">
                <div>10 hari lalu</div>
                <div>24 shares</div>
            </div>
        </body>`

this how i use it

<QuillEditor
                ref={_editor}
                initialHtml={data}
                onEditorChange={() => _editor.current?.enable(false)}
                onFocus={() => _editor.current?.enable(false)}
                onBlur={() => _editor.current?.enable(false)}
            />