dimanche 14 juillet 2019

how to apply image style in CKEditor 5 with laravel

i'm Using CKEditor 5 (Classic Editor) in my project. I have Admin page for creating post and it's work fine.(See photo)

enter image description here

by the way,i'm using laravel 5.8 in my project.

and this post store in DB like this:

    <p>
        <span style="font-size:13px;">
            <strong>
                Nine noble families fight for control over the mythical lands of Westeros,
                while an ancient enemy returns after being dormant for thousands of years.
            </strong>
        </span>
    </p>
    <figure class="image image-style-align-left">
        <img src="/images/products/2019-07-14__wp4305111__1343624201.jpg">
    </figure>
    <figure class="image image-style-align-right">
        <img src="/images/products/2019-07-14__daenerys-targaryen-dragon-game-of-thrones-fantasy-b450__1726233701.jpg">
    </figure>
    <p>
        <span style="font-size:13px;">
            <mark class="marker-green">
                Nine noble families fight for control over the mythical lands of Westeros,
                while an ancient enemy returns after being dormant for thousands of years.
            </mark>
        </span>
    </p>
 ...

So far,So good. it's work just fine.

now I wanna show my post and i expect post style be just like when i created it but All styles (for Texts,Tables,...) work fine except images.

enter image description here

I don't know what's the problem.

should i import any css or what?

any idea?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire