Change to PerchForm.class.php that fixes CKEditor plugins
For years, I've been tearing my hair out trying to figure out why I couldn't get certain CKEditor plugins to work with Perch. Often I'm able to install the CKE plugin, use it to create content, save the content in Perch and view it successfully on the frontend, but then when I go back to edit the content in Perch it won't display correctly.
Today, I was having this problem with the Code Snippets plugin, and I finally found a solution. In /perch/core/lib/PerchForm.class.php line 910 (the textarea function), I changed
$this->html($this->value(htmlspecialchars($value))) and the plugin started working. Then I went back and tried other plugins that haven't worked before and they all work now.
Can this change be made to Perch core without messing anything else up? Everything is working fine as far as I can tell.