Stop WordPress Visual Editor converting backticks into code blocks

by Richard Webster   Last Updated June 15, 2018 20:08 PM

I need my frontend wp_editor() to not convert backticks into code automatically. I have checked the settings config in the tiny_mce_before_init filter as well as the documentation on the TinyMCE website and just can't find it. Current default behaviour means text wrapped inside backticks (``) is converted into a <code></code> block automatically and I don't want that.

Answers 1

Line 82 - 84 of wp-includes/js/tinymce/plugins/wptextpattern/plugin.js

Is what causes this to happen, does anyone know of a way to disable it without modifying core WP Code?

You can comment this out and it will stop but I want a more fault-tolerant way of doing it so that updating core doesn't wipe your change out.

Nicholas Koskowski
Nicholas Koskowski
June 15, 2018 19:46 PM

Related Questions

data-accordion removed in Visual Editor

Updated May 15, 2015 22:03 PM

Using main style.css with add_editor_style

Updated September 13, 2017 05:08 AM