Here is a section of php code that I am using to read an html file and bring it into tinyMCE (html editor):
$handle = fopen('textFiles/'.$category.'.html', "r") or die("Couldn't open this file."); $_POST['editText']= fread($handle, filesize('textFiles/'.$category.'.html')) or die("Couldn't read from this file.");
Here is a section of the html file being read :
<a class="accordion-toggle" style="margin-left: 50%;" href="#collapseOne" data-toggle="collapse" data-parent="#accordion1">MORE INFO </a></div>
Here is what actually gets read into tinyMCE:
<a class="accordion-toggle" style="margin-left: 50%;" href="#collapseOne">MORE INFO </a></div>
--------------------------------------------
You see that a piece of html code gets eliminated from what is in the original html file:
data-toggle="collapse" data-parent="#accordion1"
PLEASE NOTE that tinymce editor gets the correct html code on my local server but gets the truncated version when done on the remote server. The php and html files are the same on both servers AND the version of tinyMCE is the same. Also, I have been using tinyMCE for years and never experienced this before.
ALSO, it is only that small piece of the entire html code that is left out!
Any thoughts?