You can disable the visual editor entirely in your profile settings. If you need to disable it on a per page basis, take a look at this answer.
Using text mode may not solve the empty paragraph problem, the wpautop filter is applied to the content regardless of how the content is edited. You can remove the filter, but then you’ll have to manually break and paragraph your content.
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
Alternatively, you can use a filter to strip out any empty paragraphs when displaying your content:
https://gist.github.com/ninnypants/1668216
Regarding the issue with the anchors, I haven’t had this particular issue with the editor. In general, if I am writing a lot of HTML in a post I like to use a “raw html” plugin. For example: https://wordpress.org/plugins/preserved-html-editor-markup-plus/
Related Posts:
- How can a TinyMCE modal return formatted/visual text?
- Adding a Media Button to the WordPress Content Editor
- Why did multiple line breaks stop working in text editor?
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- When switching from html to visual editor the tag gets corrupted
- Markup of oEmbed codes in the editor?
- How can I stop TinyMCE from converting my HTML entities to characters?
- Add Shortcode inline inside Gutenberg block
- data-accordion removed in Visual Editor
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- TinyMCE editor – new lines not rendered on front end
- WP 3.3 my rich text category editor toolbar is gone!
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- How can I control the HTML output of my post?
- TinyMCE Plugin Parameter
- unwanted and tags in text editor
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- Add table button in editor without Plugin
- Custom settings page TinyMce: no formatting when echoing value of editor
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Selectively remove empty line after line change
- Custom TinyMCE style formats disabled
- Prevent the Editor From Moving My
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Is it possible to disable the image alignment options in the post editor?
- Disable TinyMCE Table formatting width/height
- How to dynamically generate wordpress editor on frontend?
- Change syntax styling of TinyMCE HTML Text Editor
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- How can I make the page editor trust me?
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Adding CSS to admin TinyMCE editor for custom button
- HTML formatting issues when switching between editor tabs
- Why exactly does WordPress use p tags, not divs?
- Visual composer causing conflict with TinyMCE [closed]
- Allowing style tag in TinyMCE editor
- TinyMCE Advances is removing blanks (” “)
- Why Editor reformats my code
- enable TinyMCE for comment forms
- Best Browser for Editing Posts
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Wordpres Tinymce custom button (Gavick guide)
- Error in backend: Failed to load plugin: tabfocus from url
- Preserve indentation, HTML5 shorthand in editor
- `tinyMCE is not defined` after migrating site to server
- Custom shortcode editor [BackboneJS & TinyMCE)
- WYSIWYG with HTML source?
- How do I separate my theme’s styles from editor styles?
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- How to add placeholder in wp_editor?
- WordPress automatically adding ” “?
- WordPress Visual Editor Stripping HTML Changes
- How set defaults on wpLink()
- How to modify image editor dialog options on WordPress?
- How to add multiple buttons to TinyMCE?
- Stop certain classes showing up in TinyMCE Advanced Style dropdown
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- Count Words using tinymce in the front-end
- TinyMCE – Add class to OL – selector doesn’t seem to get parent OL,UL, just LI’s (4.6.3)
- Open link in a new tab checked by default when adding a new link in visual post editor
- TinyMCE Keyup Function
- Insert text a cursor position in to TinyMCE text editor
- Hide TinyMCE controls in TinyMCE 4 (WordPress 3.9)
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- WordPress editor strips out anchor tags when they appear on their own line
- Sortable WYSIWYG editor
- the_editor() function
- Multiple TinyMCE Editors in one Admin Page
- Customer Support: TinyMCE stopped working (on some computers)
- Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
- How to apply a custom skin to WP_Editor / TinyMCE?
- WordPress wraps span tags into p tags
- Blank spaces show as a question mark
- Can i set css class for table via TinyMCE [closed]
- Where’s the explanation of the TinyMCE’s vars in the WP core?
- How to edit blockquote image
- Customizing tinyMCE 4 Styles and Format dropdowns
- WordPress (TinyMCE) not removing script tags
- Insert attachments from custom uploader into post (regular uploader style)
- How can I remove using built in wordpress filters
- TinyMCE is inactive after installation
- How to set custom TinyMCE format style as default?
- Did Gutenberg block editor change the html in post content during import?
- Load WordPress Editor .css on Front End
- Classic TinyMCE messing up only Contributor’s HTML
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- Prevent Black Studio TinyMCE from adding tags when switching from Visual to HTML mode
- how to see P and BR tags in tinymce?
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Visual Editor not working for user on multiple computers
- What is zinging my HTML commands? I don’t think I can blame TinyMCE this time…
- Is there an alternative way to upload html without using TinyMCE?
- Add new MCE button for toggle specific cell background color