Allow extensions to set more options to encapsulateExpansionHTML

The nowiki extension will want to override `isForeignContent` so that
about attributes are omitted on the contents.

Change-Id: Iea28d7a66a90d516226ba9dce4518be6b996d18e
This commit is contained in:
Arlo Breault 2018-11-29 20:21:49 -05:00
parent b4d7a158cd
commit 26984c0294

View file

@ -758,7 +758,9 @@ var Cite = function() {
{
name: 'ref',
toDOM: this.ref.toDOM.bind(this.ref),
unwrapContent: false,
fragmentOptions: {
unwrapFragment: false,
},
serialHandler: this.ref.serialHandler, // FIXME: Rename to toWikitext
lintHandler: this.ref.lintHandler,
// FIXME: Do we need (a) domDiffHandler (b) ... others ...