#56088 closed defect (bug) (worksforme)
Facing an issue in Classic editor plugin
Reported by: | mike123998 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | reporter-feedback close |
Focuses: | Cc: |
Description
While using the classic editor in our posts area we have seen that after adding video in post content and toggling between text and visual editor is automatically getting added in the content area. please check the video.
https://www.loom.com/share/628998c3d2ec49b5afc181215dbde32c
Attachments (1)
Change History (8)
#1
@
2 years ago
- Keywords reporter-feedback close added
- Severity changed from critical to normal
- Version 6.0 deleted
Hello @mike123998 welcome to WordPress Trac and thank you for opening this ticket,
It looks like you have a bunch of plugins installed. Would you mind to try to reproduce the issue on a fresh install without any plugin except Classic Editor, and on a bundled (= default) theme?
I can't reproduce the issue on my side on a fresh install (see the above screenshot).
Thank you!
#2
@
2 years ago
I started noticing this about 10 years ago and found that it only happened with Chrome and not Firefox. From the video, it looks like you are using Chrome, so switching to Firefox is one suggestion. In any case, I think it's a TinyMCE fault and not caused by the Classic Editor plugin.
#4
@
2 years ago
It could be because you have center
tags around the embed. The first time I switched to Text view, the end tag went to the next line. The second time, it added an empty paragraph (
). Each time after that, it added another empty paragraph.
Could you wrap each of these inside a centered div
(or figure
) element instead?
<div style="text-align: center;">[embed]https://www.youtube.com/watch?v=abc123[/embed]</div>
#5
@
2 years ago
Is this perhaps something that should be opened in https://github.com/WordPress/classic-editor/issues and closed here?
#6
@
22 months ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
The problem seems to be that there are empty paragraphs after the videos. The old editor attempts to keep them by adding a
in them (so they aren't completely empty). However some plugins that add TinyMCE functionality may interfere with that. Think this is happening here. "Something" is inserting a line break after the video tag on switching the editor from Text to Visual tab.
Closing as worksforme. Feel free to reopen if this continues to happen with plugins disabled, and with more info on how to reproduce.
Can't reproduce the original issue on a fresh WordPress install.