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

The layer overflows the input box height after clicking the image. #1486

Open
angelofan opened this issue Dec 8, 2024 · 1 comment
Open

Comments

@angelofan
Copy link

Describe the bug
When click an image whose height is greater than the input box height, the selected prompt layer overflows the input box.

image

To Reproduce
Steps to reproduce the behavior:
Use this html code. Click on the image.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="https://cdn.jsdelivr.net/npm/suneditor@latest/dist/css/suneditor.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/suneditor@latest/dist/suneditor.min.js"></script>
</head>
<body>
    <textarea id="sample"><img src="http://suneditor.com/docs/cat1.jpg" /></textarea>
    <script>
        SUNEDITOR.create('sample', {
            width: '100%',
            height: 150,
            buttonList: [
                ['image']
            ],
        });
    </script>
</body>
</html>

Expected behavior
The overflow should be hidden instead of floating above the input box.

Screenshots
In my project:

image

image

@JiHong88
Copy link
Owner

The current version's structure is difficult to modify.
It has been improved in version 3.0.0, which is almost finished developing.

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

2 participants