     schema
 
   _treeAttributeFilter = (nodes, name) ->
-    i = nodes.length;
+    i = nodes.length
     snip = tree.id_prefix.length
     while (i--)
       if nodes[i].attr('id').substr(0, snip) is tree.id_prefix
         nodes[i].attr(name, null)
+
+  _nsurlAttributeFilterGenerator = (editor) ->
+    _nsurlAttributeFilter = (nodes, name, params) ->
+      i = nodes.length
+
+      while (i--)
+        node = nodes[i]
+        editor.plugins.textorum.nsmap[node.attributes.map['data-textorum-nsurl']] = node.attributes.map['data-textorum-nsprefix']
+        node.remove()
 
   tinymce.create 'tinymce.plugins.textorum.loader', {
     init: (editor, url) ->

            path_object.name = path_object.node.getAttribute('data-xmlel');
      elementHelper.init editor

    getInfo : ->
      {
        longname : 'Textorum',
        author : 'NCBI / Crowd Favorite',

        infourl : 'https://github.com/Annotum/textorum/',
        version : "0.1"
      }
    nsmap: {}
  }
  tinymce.PluginManager.add('textorum', tinymce.plugins.textorum.loader)
