Wordpress 3.1 - TinyMCE inserts “non-standard” quotation marks - how to fix it?

For some reason, the TinyMCE editor shipped with Wordpress feels the need to display smart quotes a la MS Word instead of text quotes ( ASCII).

Smart quotes cause some plugins, and / or copy / paste text into the search box (for example, in Amazon).

Is there a way to force TinyMCE to use regular quotes instead of unicode?

+3
source share
1 answer

Smart quotes are executed by the wptexturize function. You can disable them by removing the filter in the functions.php file.

remove_filter('the_content', 'wptexturize');
+4
source

Source: https://habr.com/ru/post/1789572/


All Articles