Closed jbartfay closed 8 years ago
In twig, non-empty strings always evaluate to true. So, to check if a variable is true vs. a non-empty string, we need to use a different syntax.
This config:
# app/config/config.yml trsteel_ckeditor: extra_allowed_content: "div(*)"
Should output:
var trsteelConfig = { // ... extraAllowedContent: 'div(*)', // ... };
In twig, non-empty strings always evaluate to true. So, to check if a variable is true vs. a non-empty string, we need to use a different syntax.
This config:
Should output: