- This topic has 4 replies, 2 voices, and was last updated 5 years, 11 months ago by
dale.
-
AuthorPosts
-
November 25, 2017 at 9:21 am #433894
dale
I’m not sure if this is a conflict plug-in or what, but I’ve seen other people discussing this in WordPress forums, so I thought I would mention it here to see if there is a possible solution. Over the past few months, the word press WYSIWIG editor has been randomly adding <span> tags into my text. They usually making the text editor version look something like this:
Over the past few months, the word press <span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;"> WYSIWIG editor</span> has been randomly adding <span> tags into my text. They <span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;"> usually look something</span> like this.
Sometimes the styles get added to other tags instead, for example changing:
I read a play called <em>Romeo & Juliet</em>
to
I read a play called <em style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;">Romeo & Juliet</em>
Any idea what’s going on here, and if there is an easy way to prevent this from happening or clean it up without having to go in and manually delete all the tags?
In the wordpress forums, code like
add_action( 'after_setup_theme', 'editor_setup', 11 ); function editor_setup() { global $editor_styles; $editor_styles = array(); }
has been suggested as an addition to function.php, but I’m wary of adding this is I don’t understand what’s causing it in the first place.
November 25, 2017 at 5:17 pm #434236Tom
Lead DeveloperLead DeveloperStuff like this is usually caused by a plugin. Do you have any editor related plugins installed?
December 17, 2017 at 3:20 pm #451660dale
Sorry to drop this. I have lots of plugins installed but not sure which ones would be editor related. So you mean ones that appear in the tools menu of the editing pane in posts or pages? Of those, I have:
Gallery/Photo Gallery by Supsystic
Add contact form (from Jetpack)
Proofread Writing (from Jetpack)
WP Show Posts
Better Click to Tweet (This problem started before I installed it)
Social automations by Nelio ContentI also have plugins that affect post status like LH Archived Posts and Event Post by NOUS.
December 17, 2017 at 11:01 pm #451853Tom
Lead DeveloperLead DeveloperHave you tried deactivating everything to see if the problem still exists?
December 18, 2017 at 7:00 am #452170dale
Not yet. It’s annoying, but it happens so randomly (e.g. not every day), it might be more hassle to have the plugins turned off than to just keep putting up with it.
-
AuthorPosts
- You must be logged in to reply to this topic.