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?
- wp.editor.initialize() breaks when support for ‘editor’ is added to custom post type
- Stop WordPress Wrapping Images In A “P” Tag
- How do I include a TinyMCE editor in the frontend?
- Extra TinyMCE editor strips and tags?
- Switch between Visual and HTML tab freely
- Creating a wp_editor instance with custom tinyMCE buttons
- How to add custom CSS (theme option) to TinyMCE?
- How to add “Insert/Edit link” button in custom popup tinymce window?
- Remove HTML editor and visual/HTML tabs from TinyMCE
- How to disable TinyMCE from removing span tags
- WordPress automatically adding ” “?
- Forcing reload of editor-style.css
- Add popup window to TinyMCE buttons
- Initialize TinyMCE editor / visual editor after AJAX insert
- How to customize TinyMCE4 in WP 3.9 – the old way for styles and formats doesn’t work anymore
- No filter of code on switch from html to visual editor, how?
- TinyMCE editor is breaking my beautiful HTML
- WordPress 3.9 – Trouble Editing TinyMCE 4.0
- WordPress Visual Editor Stripping HTML Changes
- How set defaults on wpLink()
- How to get the input of a TinyMCE editor when using on the front-end?
- Removing buttons from the editor
- Load wp_editor via ajax [duplicate]
- How to modify image editor dialog options on WordPress?
- How to include own css on wordpress tinymce editor?
- How to force TinyMCE in WordPress to replace newlines with tags and not with
- Hide “Add media”, HTML editor from TinyMCE
- Enqueue Script After TinyMCE initialized
- How to use tinyMCE for user “biographical info”?
- How to add multiple buttons to TinyMCE?
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- Stop editor from removing tags and replacing them with nbsp
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- Add quicktag buttons to the HTML editor
- Unable to add “code” button to TinyMCE toolbar
- TinyMCE format dropdown no longer showing style previews
- How i can i add a split button or list box to the WordPress TinyMCE instance
- Stop certain classes showing up in TinyMCE Advanced Style dropdown
- TinyMCE in customizer
- Possible to stop WordPress from adding p1, p2… classes to p tags in TinyMCE?
- Custom Tiny MCE button to bring up a custom php popup
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Disable the Code View in the content editor?
- Is it possible to re-use the image details popup?
- How to add a class to ul tags created by the WordPress editor Tinymce?
- Visual Tab Missing From Editor
- How to use the new Dashicons for custom TinyMCE buttons?
- Add unique class or ID information to tinyMCE