voidlabs / mosaico

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

Text not editable in local environment #448

Closed elcaptain closed 6 years ago

elcaptain commented 6 years ago

Hello, I am running mosaico on my local machine. I didn't hat any problems installing or compiling. My problem is that there is no field to edit any text of the blocks in the preinstalled templates (Chrome and Firefox on MacOS). screen shot 2018-05-16 at 17 04 31

There is an error about tinymce in the console:

Uncaught ReferenceError: tinymce is not defined at Object.create (tinymce.js:29185) at o.init (tinymce.js:29712) at o.init (tinymce.js:25720) at new o (tinymce.js:25691) at Function.l [as extend] (tinymce.js:25732) at tinymce.js:30462 at tinymce.js:44 at tinymce.js:27 at e (tinymce.js:43) at tinymce.js:30456

Tinymce should be installed in the "npm install" process or do i have to do that manually?

Thanks for your time.

bago commented 6 years ago

npm version? mosaico version?

elcaptain commented 6 years ago

Oh, sorry if didn't mention that. npm 3.10.10 mosaico 0.17.3 node 6.11.4

bago commented 6 years ago

Maybe this is related to #427 . I remember it was fixed on npm3 for 0.17.3, but I didn't test it now.

bago commented 6 years ago

I just tested with

npm 3.10.10 mosaico 0.17.3 node 6.11.4

and it worked fine.

elcaptain commented 6 years ago

fsevents@1.2.4 install /Users/jonas/Documents/mosaico/node_modules/fsevents node install

[fsevents] Success: "/Users/jonas/Documents/mosaico/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node" already installed Pass --update-binary to reinstall or --build-from-source to recompile

iltorb@1.3.10 install /Users/jonas/Documents/mosaico/node_modules/iltorb detect-libc prebuild-install || node-gyp rebuild

Running "copy:res" (copy) task Created 6 directories, copied 40 files

Running "copy:root" (copy) task Copied 1 file

Running "copy:htmls" (copy) task Copied 2 files

Running "copy:fontawesome" (copy) task Copied 5 files

Running "uglify:deps" (uglify) task

1 sourcemap created. 1 file created 2.42 MB → 923.19 kB

Running "cssmin:deps" (cssmin) task

1 file created. 358 B → 322 B

Running "jshint:all" (jshint) task

✔ No problems

Running "combineKOTemplates:main" (combineKOTemplates) task

Running "browserify:main" (browserify) task

1038689 bytes written (8.87 seconds) Bundle build/mosaico.js created.

Running "exorcise:main" (exorcise) task Exorcising source map from build/mosaico.js

Running "less:css" (less) task

2 stylesheets created.

Running "postcss:dist" (postcss) task

1 processed stylesheet created. 1 sourcemap created.

Running "postcss:material" (postcss) task

1 processed stylesheet created. 1 sourcemap created.

Running "express:dev" (express) task Starting background Express server Express server listening on port 9006

Running "watch" task Waiting...

It seems to have something to do with npm3 like you mentioned. I reinstalled with node 10.0.0 and npm 5.6.0 and it works.

bago commented 6 years ago

Can you send me the "dist/rs/mosaico-libs.min.js is 924kb" not working? The size is ok, so tinymce should be there... maybe it have been added in the wrong order.. I have to see the result to analyze it as it worked fine in my npm3 deploy.

elcaptain commented 6 years ago

Hi bago, sorry for the delay. After downgrading to npm@3.10.10 and node@6.11.4 and a new compile it is working now. Since the bug is not reproducible by me anymore I'll close this ticket. Sorry for bothering.