       editor.onSetContent.add (ed, o) ->
         tree.update '#editortree', ed
       editor.onNodeChange.add tree.navigate
+      editor.onPreInit.add (editor) ->
+        editor.parser.addAttributeFilter 'data-textorum-nsurl', _nsurlAttributeFilterGenerator(editor)
+        editor.serializer.addAttributeFilter 'id', _treeAttributeFilter
       editor.onInit.add (editor) ->
-        editor.serializer.addAttributeFilter 'id', _treeAttributeFilter
         
       if editor.theme.onResolveName
         editor.theme.onResolveName.add (theme, path_object) ->

    schema

  _treeAttributeFilter = (nodes, name) ->
    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)

  tinymce.create 'tinymce.plugins.textorum.loader', {
    init: (editor, url) ->

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