1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

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

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: {