[wp-trac] [WordPress Trac] #39790: When I click on URL button for add an URL to an image a new line is added
WordPress Trac
noreply at wordpress.org
Thu Nov 28 08:43:55 UTC 2024
#39790: When I click on URL button for add an URL to an image a new line is added
-------------------------------+-------------------------
Reporter: asimioni | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Editor | Version: 4.7.2
Severity: normal | Resolution: worksforme
Keywords: reporter-feedback | Focuses:
-------------------------------+-------------------------
Comment (by nathan001):
Replying to [comment:3 nathan001]:
> @asimioni This issue appears to stem from the editor or toolbar
behavior, where clicking the URL button unintentionally inserts a new line
after the selected image. Such behavior is often caused by the editor
adding a block-level element, such as a <p> tag, after the image when
interacting with certain toolbar options. It could also be due to an event
triggered by the button click, which might not be properly handled,
leading to the insertion of unwanted content.
>
Another solution involves ensuring the image is wrapped within an
appropriate container, such as a <figure> or <div> tag. This can prevent
the editor from misinterpreting the layout and adding unnecessary lines.
If the issue persists, updating the editor or toolbar plugin to the latest
version may resolve any bugs or glitches contributing to the problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39790#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list