1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Bram Chen 2015-02-07 09:15:46 +08:00
commit 9cfbc3b001
3 changed files with 20 additions and 1 deletions

View File

@ -35,6 +35,7 @@ CheckboxWidget.prototype.render = function(parent,nextSibling) {
this.execute();
// Create our elements
this.labelDomNode = this.document.createElement("label");
this.labelDomNode.setAttribute("class",this.checkboxClass);
this.inputDomNode = this.document.createElement("input");
this.inputDomNode.setAttribute("type","checkbox");
if(this.getValue()) {
@ -126,6 +127,7 @@ CheckboxWidget.prototype.execute = function() {
this.checkboxChecked = this.getAttribute("checked");
this.checkboxUnchecked = this.getAttribute("unchecked");
this.checkboxDefault = this.getAttribute("default");
this.checkboxClass = this.getAttribute("class","");
// Make the child widgets
this.makeChildWidgets();
};

View File

@ -0,0 +1,16 @@
created: 20150206170114934
modified: 20150206170327332
tags: Resources
title: "TW5-TeXZilla" plugin by Joe Renes
type: text/vnd.tiddlywiki
url: http://tw5-texzilla.tiddlyspot.com
An alternative LaTeX plugin for TiddlyWiki5. It supports a wider set of LaTeX commands than [[KaTeX|KaTeX Plugin]], though not as extensive as MathJax
{{!!url}}
<<<
This plugin provides LaTeX support in TiddlyWiki5, using the [[TeXZilla|https://github.com/fred-wang/TeXZilla]] latex parser to generate MathML.
Only Firefox and Safari support MathML at the moment, so the plugin is only useful if you're using one of these browsers. It might be possible to combine this plugin with MathJax to convert MathML to something that other browsers can understand, e.g. HTML+CSS, but I haven't tried this.
<<<

View File

@ -1,6 +1,6 @@
title: CheckboxWidget
created: 201310241419
modified: 201407110837
modified: 201502050050
tags: Widgets
caption: checkbox
@ -22,6 +22,7 @@ The content of the `<$checkbox>` widget is displayed within an HTML `<label>` el
|checked |The value of the field corresponding to the checkbox being checked |
|unchecked |The value of the field corresponding to the checkbox being unchecked |
|default |The default value to use if the field is not defined |
|class |The class that will be assigned to the label element |
!! Tag Mode