From c428024b37563dd90d472ef70d856ae7fa2bf5b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Fri, 11 Feb 2022 18:47:16 +0100
Subject: [PATCH] prevent image to overflow editor

---
 app/assets/stylesheets/commons/_summernote.sass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/assets/stylesheets/commons/_summernote.sass b/app/assets/stylesheets/commons/_summernote.sass
index 9170bf212..76df9b876 100644
--- a/app/assets/stylesheets/commons/_summernote.sass
+++ b/app/assets/stylesheets/commons/_summernote.sass
@@ -4,3 +4,6 @@
         font-weight: bold
     .note-btn.dropdown-toggle:after
         content: none
+    .note-editable img
+        max-width: 100%
+        height: auto
-- 
GitLab