Thread tagged as: Question, Error, Field-Types

How do I allow JavaScript inside a textarea field?

This is the template code I am using:

<perch:content id="shopify" type="textarea" label="Shopify code" editor="markitup" html="true" />

but I'm still getting a 403 error when I save the record. I have tried to install tinymce and ckeditor but I'm not getting either of those to work.

Alan Coggins

Alan Coggins 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't think the 403 is coming from Perch - it could be your hosting blocking the JavaScript.

Does adding markdown="true" help? The following is from the docs:

<perch:content id="body" type="textarea" label="Article body" markdown="true" editor="markitup" />

And there's also this regarding editor plug-ins

Thanks for the responses chaps. Drew was correct - it was a modsec rule at my host. We spent about an hour last night trying different things and we finally got it working. Cheers.