juek / CustomSections

Developer plugin for rapid prototyping of custom section types in Typesetter CMS
GNU General Public License v2.0
3 stars 7 forks source link

Missing double-quotes escaping breaks editor #49

Open JPustkuchen opened 6 years ago

JPustkuchen commented 6 years ago

Context: Configuring an element in the editor with double-qoutes in it, for example HTML code in description

Problem: The double-quotes are also used in the HTML form markup in editor.js and so the input element breaks if they are not escaped properly.

Proposed solution: Escape the double quotes in value

Tested, working, patch follows!