Update editor.js

https://github.com/anchorcms/anchor-cms/pull/561#issuecomment-37805641

Use the selected class from menu to take the `href` attribute, so that user will automatically redirected to the posts page (admin) after she/he creating a **new** post and to the pages page (admin) after she/he creating a **new** page.