Use inline parsing for header and footer of modals

This may cause backwards compatibility problems for people relying on
the block mode parsing, but it’s much better for the rest of us as it
avoids an unsightly paragraph tag
This commit is contained in:
Jermolene 2015-03-18 11:41:10 +00:00
parent 22b7400de8
commit 421ac16389
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ Modal.prototype.display = function(title,options) {
// Render the title of the message
var headerWidgetNode = this.wiki.makeTranscludeWidget(title,{
field: "subtitle",
mode: "inline",
children: [{
type: "text",
attributes: {
@ -112,6 +113,7 @@ Modal.prototype.display = function(title,options) {
}
var footerWidgetNode = this.wiki.makeTranscludeWidget(title,{
field: "footer",
mode: "inline",
children: [{
type: "button",
attributes: {