Visual mode – Text mode
-
Hi,
I’m using “TinyMCE Advanced” 4.1.7 with WordPress 4.1
“TinyMCE advanced” is a great plugin (I have been using it for a long time) but I recently found a problem when switching between visual mode and text mode.Here is an example of the problem.
In text mode I insert the following code:
<p>Click the button to display the time.</p>
<button onclick=”getElementById(‘demo’).innerHTML=Date()”>What is the time?</button>
<p id=”demo”></p>In the preview of the modifications the button works fine.
Then I switch to visual mode, the button doesn’t work anymore.
Then I switch back to text mode and found that the original code has been truncated as shown below :
Click the button to display the time.
<button>What is the time?</button>The only way I found to solve the problem is :
1- edit the page in visual mode
2- switch in text mode and insert the right code
<button onclick=”getElementById(‘demo’).innerHTML=Date()”>What is the time?</button>
<p id=”demo”></p>
3- publish in text modeThanks for assistance
- The topic ‘Visual mode – Text mode’ is closed to new replies.