I maintain several WordPress sites since years.
Today I noticed a strange behavior:
I have a page where I used Text editor mode to implemented a form containing a select field with several options. Adding or changing options in Text editor mode was no problem since years.
Today when I added an option and switched back to Visual mode, the Dropdown field was split into two. Changed back to Text mode and saw this code change (symbolic content):
<option value=”myOption1″>My Option 1</option>
<option value=”myOption2New”>My Option 2 New</option>
</select><select name=”myField”> <— this line has been added automatically
<option value=”myOption3″>My Option 3</option>
Removed the closing and re-opening <select>-tag. When switching back to Visual mode, Dropdown field has been split again!
Triple checked HTML syntax of the page’s code, even in DreamWeaver and other HTML Checkup Tools. Code is valid.
Checked WordPress (4.9.2) and all Plugins, Themes to be on most current version. All fine.
Deactivated ALL Plugins. Same strange behavior.
Tested on Development site, here still WordPress version 4.9.1. Same behavior.
Tested on TWO COMPLETELY DIFFERENT WordPress 4.9.2 sites with other themes, plugins. Same behavior.
When I save my form changes still in Text mode, all is fine, no split Dropdown fields. Only when I change the select field in Text mode and switch back to Visual mode, the select field gets split into two.
I assume, the problem might have been first occurred since the change of the TinyMCE editor components in WordPress Core 4.9
- The topic ‘WordPress Editor changing my form source code’ is closed to new replies.