code: function _convertPlainTextToDocument (tx, args) {
    let lines = args.text.split(/\s*\n\s*\n/)
    let pasteDoc = tx.getDocument().newInstance()
    let defaultTextType = pasteDoc.getSchema().getDefaultTextType()
    let container = pasteDoc.create({
      type: '@container',
      id: SNIPPET_ID,
      nodes: []
    })
    let node
    if (lines.length === 1) {
      node = pasteDoc.create({
        id: TEXT_SNIPPET_ID,
        type: defaultTextType,
        content: lines[0]
      })
      container.append(node.id)
    } else {
      for (let i = 0; i < lines.length; i++) {
        node = pasteDoc.create({
          id: uuid(defaultTextType),
          type: defaultTextType,
          content: lines[i]
        })
        container.append(node.id)
      }
    }
    return pasteDoc
  }
docs: /*
  Splits plain text by lines and puts them into paragraphs.