blueriver/MuraCMS — pull request #352 by azadisaryev (2012-04-13 08:07:41+00:00)
Title: 'Insert Component' button in CKEditor can't add components without body

Fixes
/tasks/widgets/ckeditor/plugins/SelectComponent/fck_selectComponent.cfm

_'Insert Component'_ button in CKEditor now correctly treats components
with empty body (e.g. custom user-created components which are
rendered via a custom display method in custom eventHandler.cfc).

Currently custom components without a body cannot be added to a page
via 'Insert Component' button because the
tag in components
list for such components has value="" (empty string), which triggers a validation
error 'Please select component'.

**Fix:** for such components with empty body fck_selectComponent.cfm should
make _[mura]$.dspObject('component', '#rs.contentID#')[/mura]_ the value
of
tag in conponents list.