How to convert my html textarea element where code mirror is attched to Polymer code-mirror element

I have a textarea element where we have used codemirror for auto completion.
Now I need to convert this textarea element to be converted into code-mirror Polymer element.
Please help me how to start this or any code samples.

Any luck with this? I am also trying to use it.