Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML encoding of the value #6

Open
mattsummers opened this issue Aug 12, 2020 · 2 comments
Open

HTML encoding of the value #6

mattsummers opened this issue Aug 12, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@mattsummers
Copy link

Using the code editor on a form field that contained a <textarea></textarea> illustrated a problem, everything after the </textarea> was cut off, truncating the field.

CodeEditorField.ss

<textarea $AttributesHTML style="display: none;">{$Value.RAW}</textarea>

Change to:

<textarea $AttributesHTML style="display: none;">{$Value}</textarea>

Now it works. And also my HTML has proper highlighting in the code editor.

@jinjie jinjie added the help wanted Extra attention is needed label Aug 12, 2020
@mattsummers
Copy link
Author

I see, this depends on whether the field was encoded as Text or HTMLText. That fix might not be quite right. I will experiment a bit more.

@mattsummers
Copy link
Author

Yeah {$Value} seems to fix it for both types of fields, although {$Value.HTML} and {$Value.ATT} might be more appropriate, but haven't tested. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants