onClick inside post_content does not appear in post tinymce editor

by J.BizMai   Last Updated March 29, 2018 16:08 PM

I'm doing a migration. I made a php script to generate posts in the new wordpress database. The content post contains a html link with href="javascript:" and onClick="trackOutboundLink('url')"

post_content in the new database

  <a class="exclusive button-exclusive" href="javascript:" onclick="trackOutboundLink('url'); return false;" rel="nofollow"><span>&#9655; Text link</span></a>

For some reasons, the href and onclick attributes did not show in the admin post editor. Why ? How can I fix this ?

Related Questions

disable <script> tags on wordpress text editor

Updated November 08, 2017 16:08 PM

What does mean 'wpTagsSuggest is not a function'?

Updated January 05, 2017 08:03 AM

How to create WP Editor using javascript

Updated July 25, 2017 15:08 PM