when editing templates with CKEditor, protect blocks of perl code, #24331