ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.45k stars 3.7k forks source link

img always full fill the editable space #1769

Closed Nothing-Works closed 5 years ago

Nothing-Works commented 5 years ago

Is this a bug report or feature request? (choose one)

Other

Hi I was following this tutorial to set up document editor.

InkedUntitled_LI

this img I uploaded is always full fill the editable space, is this my problem? or how am I able to solve it?

BTW I am using a custom upload adapter, and it's inlining base 64 string url for img.

Or this is maybe my custom upload adapter issue?

Update

if I were to remove min-height: 21cm; in the CSS below. the space is gone. But I do want to set a min height.

.document-editor__editable-container .ck-editor__editable {
    /* Set the dimensions of the "page". */
    width: 15.8cm;
    min-height: 21cm;

    /* Keep the "page" off the boundaries of the container. */
    padding: 1cm 2cm 2cm;

    border: 1px hsl( 0,0%,82.7% ) solid;
    border-radius: var(--ck-border-radius);
    background: white;

    /* The "page" should cast a slight shadow (3D illusion). */
    box-shadow: 0 0 5px hsla( 0,0%,0%,.1 );

    /* Center the "page". */
    margin: 0 auto;
}

the pic below shows the result Untitle1d

any help or suggestion is appreciated !!!

Nothing-Works commented 5 years ago

sorry, this is purely a css issue.