voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.69k stars 500 forks source link

VueJS integration help (Unable to process binding) #571

Closed rusicsemenov closed 4 years ago

rusicsemenov commented 4 years ago

Hello, i try implemet mosaico in my project on VUEJS whithout index.html and have arror

Unable to process binding "template: function(){return 'main' }" Message: Cannot find template with ID main

If i try use only editor.html and init whith template oprions all work perfct

var ok = Mosaico.init(
                    {
                        template:
                            "templates/versafix-1/template-versafix-1.html",
                        imgProcessorBackend: basePath + "/img/",
                        emailProcessorBackend: basePath + "/dl/",
                        titleToken: "MOSAICO Responsive Email Designer",
                        fileuploadConfig: {
                            url: basePath + "/upload/"
                            // messages??
                        }
                    },
                    plugins
                );

But if i init Mosaico in project i recive error Unable to process binding maybe i need some structure for mosoico? Maybe i can select target div for generate mosaico Screenshot_2

bago commented 4 years ago

Mosaico expect to work on its own full page. Run it in an frame if you are not ready to deeply understand and refactor mosaico sources.