mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Add 'formattedtext' output type to Wikify widget
This commit is contained in:
parent
2f590a365e
commit
d9f301f755
@ -71,6 +71,9 @@ WikifyWidget.prototype.getResult = function() {
|
||||
case "text":
|
||||
result = this.wikifyContainer.textContent;
|
||||
break;
|
||||
case "formattedtext":
|
||||
result = this.wikifyContainer.formattedTextContent;
|
||||
break;
|
||||
case "html":
|
||||
result = this.wikifyContainer.innerHTML;
|
||||
break;
|
||||
|
@ -1,8 +1,9 @@
|
||||
title: WikifyWidget
|
||||
created: 20160321144949700
|
||||
modified: 20160321144949700
|
||||
tags: Widgets
|
||||
caption: wikify
|
||||
created: 20160321144949700
|
||||
modified: 20161017122117062
|
||||
tags: Widgets
|
||||
title: WikifyWidget
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
! Introduction
|
||||
|
||||
@ -23,6 +24,7 @@ The available output types are:
|
||||
|
||||
|!Keyword |!Description |
|
||||
|text |Return the plain text of the rendered output (ie HTML tags are omitted) |
|
||||
|formattedtext |Return the plain text with simple text formatting of the rendered output (ie HTML tags are omitted) |
|
||||
|html |Return the rendered HTML of the output |
|
||||
|parsetree |Return a formatted JSON representation of the parse tree |
|
||||
|widgettree |Return a formatted JSON representation of the widget tree |
|
||||
|
Loading…
Reference in New Issue
Block a user