Combining content and file block

Permalink
Hi. Basically what I want is a custom block with a couple of input fields, a file picker and a tinymce area. So I have copied the editor from the content block and the file chooser from the file block. The problem is that they don't really work together. When I pick a file with the file chooser, it ends up in the editor instead of as a thumbnail like it should. I'm kinda lost in the javascript right now, so if anyone has any idea of how to fix the conflict, I'd appreciate it.

 
frz replied on at Permalink Reply
frz
this sounds like a new custom block to me.

conversely, you might be able to pull off what you're talking about by using the form block if you're willing to lose the richtext editor...
kria replied on at Permalink Reply
After digging around a bit I found my problem.
ccm_alSelectFile in ccm.filemanager.js calls ccm_chooseAsset if it's defined (which it is in editor_init.php), so ccm_triggerSelectFile will never be called for the file chooser. I just added a condition on ccm_alActiveAssetField so now it works.
Enlive replied on at Permalink Reply
Enlive
Can you please share what you did. I'm running into the same problems.