sheadawson / silverstripe-shortcodable

Provides a GUI for CMS users to insert Shortcodes into the HTMLEditorField + an API for developers to define Shortcodable DataObjects and Views.
MIT License
48 stars 36 forks source link

shortcodable.js - Uncaught TypeError: Cannot read property 'split' of undefined #36

Closed camexapps closed 8 years ago

camexapps commented 8 years ago

Appears to be from the getPlaceholderClasses function. Perhaps some checking method to see if the 'placeholderclasses' data attribute exists first, such as:

if ($(this).data('placeholderclasses')) { return $(this).data('placeholderclasses').split(','); }

sheadawson commented 8 years ago

Thanks for reporting!