You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is what I've done and it works, however be aware that the property is also included in the first line above.
I would actually suggest completely ditching modx->toJSON(), it's far too aggressive for what needs to be done with TinyMCE properties. A simple for loop echoing out the array as a JSON object literal would suffice. At least then you could do a quick check for control characters like [ or look at the key and leave off the quotes for things that require javascript array literals.
If you add it as a property, then the value is wrapped in double quotes. This is wrong, since the value is a native JS array.
The text was updated successfully, but these errors were encountered: