I am using TinyMCE - 6.1.2 version. I would like to retain all the contents entered in TinyMCE as it is (especially while using 'Source Code' option).
Adding the below configuration helps in the majority of the scenarios.
verify_html : false,
But some values like action getting automatically stripped:
<input type='hidden' name='action' value=''>
is getting stripped to:
<input type="hidden" value="">
This is a bug in TinyMCE and the same has been confirmed - TinyMCE removing 'action' word even after setting verify_html to false
Code Flow:
If your element or node is getting removed, please debug the _sanitizeElements or _sanitizeAttributes functions respectively.