     (@_get "characters").delete position, length
 
   createChar: (char, left=[], right=[]) ->
-    return new Y.Object {
+    return new @_model.custom_types.Object {
       char: char
       left: left
       right: right

BaseClass = (require "./misc.coffee").BaseClass
Y = require '../../yjs/lib/y.coffee'
Y.List = require '../../y-list/lib/y-list.coffee'
Y.Selections = require '../../y-selections/lib/y-selections.coffee'


# All dependencies (like Y.Selections) to other types (that have its own
# repository) should  be included by the user (in order to reduce the amount of

      @_setModel @_model

      # listen to events on the model using the function propagateToEditor
      @_model.observe propagateToEditor
    return @_model

  _setModel: (model) ->
