Hello I am using tiny mce to display text in a javascript script, but the problem is that some function as "embed video" or templates adds line breaks in the html code. This has the effect of halting the javascript function. Of course remove_linebreaks tinymce option is enabled but nothing happens. I would like to know if there is a way to replace the line breaks in the html code of tinymce, but also to replace the quotes which also prevents the javascript function.

Thank you in advance