While this sounds strange behavior, it does sound like you are doing it wrong. The wordpress “text” editor is not an HTML editor and should not be a replacement for one. It is useful for fixing whatever can not be done with the visual editor, but no more.
If you need a specific design which is just impossible to even get close to achieve with the visual editor, you should just create a page template for it. (It is unlikely that a author which do not understand HTML will be able to maintain the changes you are trying to do now, so no flexibility will be actually lost)
Related Posts:
- prevent wordpress from rendering line breaks as br tags
- Removing buttons from the html editor
- why do HTML Comments in the WYSIWYG break the page display?
- Contents of HTML editor mangled after multiple UPDATES
- functional quicktag
- How to process html editor whole content of a single post
- pop-up options for custom quicktags
- Remove TEXT EDITOR form page [duplicate]
- Create keyboard shortcuts for HTML mode
- How can I create an alternate full-HTML editor for posts?
- How to prevent WordPress CodeEditor adding fake closing tags that corrupt the page?
- How can you change the non-visual editor’s background color?
- I have a question in Basic HTML [closed]
- Why is `–` converted into ndash and how can I get rid of it?
- unexpected added in HTML at each update [closed]
- WordPress adding in anchor elements when I save a page in html editor
- Set or change default text in hyperlink popup in post editor
- How to use “Add link” pop up for a WordPress widget
- Hide “Add media”, HTML editor from TinyMCE
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- Add quicktag buttons to the HTML editor
- Disable the Code View in the content editor?
- Stop WordPress From Removing HTML Comments In Content
- Can I force WordPress to use instead of ?
- Enable / Add Custom Keyboard Shortcuts To Work With WordPress’ HTML Editor
- How to to stop html editor from addig tags to shortcodes, images, etc
- serialize_blocks breaking html tags in content
- Prevent WordPress from adding linebreaks to javascript embedded in a page
- strip only specific tags (like ), but keep other tags (like )
- Where can I find the code how wordpress parses a post?
- Preserve white-space in Page
- WP Editor strips input placeholder attribute
- how to make stylesheet appear in theme editor?
- ID’s being stripped out of editor for Admin user in Multi-Site
- data-accordion removed in Visual Editor
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- How to add JavaScript code on WordPress properly?
- Why does the custom HTML block not preserve the HTML characters?
- How-to stop wordpress from saving utf8 non-breaking space characters
- Exclude file from theme editor
- How To Hide The Visual And Html Editor Completely?
- add_meta_box Callback not being called
- How can I control the HTML output of my post?
- Strange problems when I try to insert HTML\XML code snippet in my posts
- Recommended tools for Theme Development with SASS [closed]
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- Can “ and “ tags be used in the HTML editor?
- How to display php source code inside a post using visual editor?
- Placeholder in HTML editor text area?
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Prevent WordPress from messing my HTML
- Visual/Text tabs in wp editor Not Showing
- Selectively remove empty line after line change
- Prevent the Editor From Moving My
- HTML editor accessing quicktag buttons
- Text Editor Tags
- How to Add Custom Button to Text(HTML) Editor and NOT Visual Editor
- WordPress editor not creating tags properly in tables
- Product Custom Fields with HTML and JS
- Removing line breaks when in text view with wp_editor
- Inline Style attribute getting stripped off
- Disable TinyMCE Table formatting width/height
- In context click and edit: is it feasible?
- How can I remove line breaks from manually formatted HTML?
- How can I prevent WordPress to wrap into a paragragraph
- How can I make the page editor trust me?
- WordPress adding a to my anchor for Read More
- Why does WordPress change a file’s permissions?
- HTML tables in content areas
- how can default_content filter tell if content will load in block editor or classic editor?
- How can a TinyMCE modal return formatted/visual text?
- Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]
- Why exactly does WordPress use p tags, not divs?
- Visual composer causing conflict with TinyMCE [closed]
- How to show the contants in front end same as visual editor with space / linebreak?
- Edit box scrolls back to the top after updating post
- Commenting out in HTML editor breaks template
- How to determine if a post was last edited in the Visual Editor
- qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]
- Adding a Media Button to the WordPress Content Editor
- Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window
- How do I prevent WordPress from eating my code?
- Classic TinyMCE messing up only Contributor’s HTML
- Locating the HTML piece of code in wordpress
- Why is every single HTML tag being stripped out of liveblog entries?
- Callback function quicktags that uses variable in start tag
- My WordPress editor deletes all characters after emoji – how can I fix this?
- How to disable style filtering in post?
- WYSIWYG with HTML source?
- insert link in wordpress editor greyout whole screen?
- Disable html in custom post types
- Which subset of html does WordPress support?
- wordpress not saving form code in code editor
- WordPress HTML editor panel is not showing HTML elements
- Add Custom CSS Class in Child Theme [closed]
- Can you not edit the HTML and PHP of your WordPress without paying?
- How Do I Add HTML Support to the Additional Category Description Field?
- WordPress “HTML editor” which doesn’t trash hand-coded HTML?
- WordPress adds and tags into HTML blocks after saving
- Can’t have two simultaneous charts using Apex Charts