Adding any "src=" to editor's metaboxes disrupts encoding
-
Hello all,
I thought I had this resolved earlier, but back to the same issue.
I have found that if I include any src= file (whether external or saved within my own directory structure) in a metabox for the edit-form-advanced.php via a plugin, the encoding becomes disrupted such that a dash (“-“) becomes “a€”” in the tinyMCE editor window (same is true if I switch to the “HTML” view. I have no idea why or how to fix it.
In this case, I have an file which I have “required” in many different ways (as a .js, .php, and .html file) and regardless of how I require it, it still disrupts the encoding as mentioned above.
An image of this can be found here:
https://financepong.com/blog/wp-content/uploads/2013/03/encoding_disruption.jpgHere is the entire file’s content… (very simple jQuery example):
<?php ?> <script type="text/javascript" src="/blog/wp-content/plugins/jquerylib/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#title").keyup(function(){alert("hello world");}) }); </script>
In the plugin file that creates the metaboxes in the editor I simply have…
require("jquery_test.php");
Any thoughts anyone may have would be greatly appreciated.
Thanks so much!!
Trip
- The topic ‘Adding any "src=" to editor's metaboxes disrupts encoding’ is closed to new replies.