Skip to content

pb behaviors not triggered #66

@FransJoakim

Description

@FransJoakim

It doesn't seem possible to add a behavior that's triggered by a pb-tag. Why is that, and could it be fixed?

Am I wrong? The looks like this (pretty standard):

const ct = new CETEI()
let behaviors = {
  tei: {
	pb: function (e) {
		console.log(e)
		return PageBegin(e)
	},
  },
}
ct.addBehaviors(behaviors)
const html = await ct.makeHTML5(data)

Nothing gets logged the the PageBegin-function does not run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions