jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.76k stars 298 forks source link

Populate Existing Categories and Tags #10

Open abstracthat opened 10 years ago

abstracthat commented 10 years ago

We can parse categories and tags as JSON that this plugin outputs https://github.com/timnew/hexo-generator-atom-markdown-writer-meta so that instead of having to type (and remember the correct category name) we can choose to select existing ones. This is more important for categories than tags but both are useful.

jaredly commented 9 years ago

Cool! That seems most useful for migration, right?

fadehelix commented 7 years ago

This is what I need recently ;) I am going to replace text inputs with select. Any suggestions?

pirtleshell commented 7 years ago

I would suggest using a preexisting component to keep from reinventing the wheel. Something like react-tagsinput looks promising. You can access all the tags for a given post from the props of the config-dropper and propogate them appropriately there.

fadehelix commented 7 years ago

The issue I've met as a react beginner is deprecated version of react used in hexo-admin, so adding new components is much more complex. What I would like to do is to implement react-autocomplete as a replacement of existing text field. Going this way rather than implementing tagsinput I can improve ux with as minimum changes as possible.