How to make possible of adding player-created map in game?

I’m developing simple puzzle game and want players be able to create and share levels.
I think that I must create in-game custom level editor, which can save data in some tables. And then I can do what I want with data (send on serve for example).

I also like to know.