-
-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
Describe the bug
When click an image whose height is greater than the input box height, the selected prompt layer overflows the input box.
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:
Metadata
Metadata
Assignees
Labels
No labels