koostudios / couchpress

A super lightweight and modular CMS built on NodeJS, Express and CouchDB
http://couchpress.nodester.com/
MIT License
84 stars 8 forks source link

Editor doesn't work. #13

Closed moowiz closed 12 years ago

moowiz commented 12 years ago

I tried to use the editor to create a new post, and when I clicked the HTML button, it exited me back to the homepage of the site.

I looked around and realized that the page wasn't loading editor.js correctly. There's an issue with how the editor.js file is being included that i'm not totally sure how to fix.

You could either add another thing in the main.coffee file to have gets looking for the editor.js look in the admin folder, or you could change the url inside editor.jade.

koostudios commented 12 years ago

Hi @moowiz2020, thanks for pointing that out. It's been a known issue and I thought it was fixed (because it was fixed on my end and I hadn't committed it yet). I'll go commit that version now!

koostudios commented 12 years ago

If you want to fix it yourself, the URL should point to /admin/js/editor.js (I had namespaced all the admin files under /admin already in the main.coffee file.