odoo/odoo#181916

Created by Editor, Rodolpho Cammarosano de Lima (rcdl)
Merged at 0eb931b38c6bd7d1a1bf2e7d0d4ae2430fbd5d3e

Statuses:

label
odoo-dev:18.0-html_editor-fix_hint_over_media_element-rcdl
head
c97213144fa303cb08c2f56123cb6fd9be8076f3
merged
8 months ago by JavaScript, Francois Georis (fge)
odoo/odoo
18.0 #181916
saas-18.1
saas-18.2
saas-18.3
master #182147

[FIX] html_editor: hint in block containing media

Steps:
1. In an empty editable, insert a document with /image -> Documents
2. Move the cursor to before or after the document icon.

-> The 'Type "/" for commands' hint is displayed over the icon.

  1. Now click outside the editable.

-> The "Type here" hint is displayed over the icon.

Both hints display are undesirable, as the content of the first (and only) paragraph is not empty.

This commit makes sure media elements are considered as visible content when checking if a block is empty.