$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>tinymce - Client on iPad accidentally adding <code> tag to posts while writing|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

tinymce - Client on iPad accidentally adding <code> tag to posts while writing

matteradmin9PV0评论

A client of mine complains that text gets 'randomly highlighted' when he is writing Wordpress posts on his iPad Pro. He uses the web interface. I got him to stop deleting the 'highlighted' text and let me see it, and found out that it was caused by text he had written being enclosed in <code> tags.

How has he managed to accidentally type <code> tags, do you think? He is not a technical user and is certainly not doing it on purpose. Additionally he must be using the 'visual' rather than the 'text' editing mode, otherwise he would see the <code> tag instead of the 'highlighting'. And adding a <code> tag isn't even an option in that editing mode, that I can see. Is there some clever shortcut for this that he is accidentally typing?

Failing this (and I really don't want to fail, ideally!!) is there some simple method I can teach him to clear all these tags?

A client of mine complains that text gets 'randomly highlighted' when he is writing Wordpress posts on his iPad Pro. He uses the web interface. I got him to stop deleting the 'highlighted' text and let me see it, and found out that it was caused by text he had written being enclosed in <code> tags.

How has he managed to accidentally type <code> tags, do you think? He is not a technical user and is certainly not doing it on purpose. Additionally he must be using the 'visual' rather than the 'text' editing mode, otherwise he would see the <code> tag instead of the 'highlighting'. And adding a <code> tag isn't even an option in that editing mode, that I can see. Is there some clever shortcut for this that he is accidentally typing?

Failing this (and I really don't want to fail, ideally!!) is there some simple method I can teach him to clear all these tags?

Share Improve this question asked Nov 12, 2018 at 8:53 retrocoolretrocool 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Sounds like a copy and paste issue.

Anyway, there is information on how to clean by allowing just certain tags in your written content in tinymce editor. https://jonathannicol/blog/2015/02/19/clean-pasted-text-in-wordpress/

So if you go to disallow the code tag with this technique. You should be fine enough..

Post a comment

comment list (0)

  1. No comments so far