joshuafontany / tw5-jsoneditor Goto Github PK
View Code? Open in Web Editor NEWThis project forked from btheado/jsoneditor
TiddlyWiki plugin for creating json forms using json schema
This project forked from btheado/jsoneditor
TiddlyWiki plugin for creating json forms using json schema
I would like to use JSONEditor on TW 5.1.21 + Node.js, loading plugins via tiddlywiki.info
(Windows 10).
Minified plugin.info file provided at the release page is for rel 0.0.5, while on the demo page I see rel. 0.0.6 is loaded
Plugin.info provided at the release page looks empty once it is loaded. I had a closer look and noticed that in the included json the shadow tiddlers are wrapped in an object named "text", while it should be "tiddlers"
Changing the object name to tiddlers it raises the following error while loading:
Serving on http://127.0.0.1:8080
(press ctrl-C to exit)
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
z:\opt64\tw5.1.21\boot\boot.js:99
array.push.apply(array,value);
^
RangeError: Maximum call stack size exceeded
at Object.$tw.utils.pushTop (z:\opt64\tw5.1.21\boot\boot.js:99:15)
at $:/core/modules/filters.js:249:17
at $:/core/modules/filters.js:285:4
at Object.$tw.utils.each (z:\opt64\tw5.1.21\boot\boot.js:126:12)
at $tw.Wiki.filterFunction ($:/core/modules/filters.js:284:13)
at $tw.Wiki.exports.filterTiddlers ($:/core/modules/filters.js:171:12)
at SetWidget.getValue ($:/core/modules/widgets/set.js:78:27)
at SetWidget.execute ($:/core/modules/widgets/set.js:51:37)
at SetWidget.render ($:/core/modules/widgets/set.js:32:7)
at ElementWidget.Widget.renderChildren ($:/core/modules/widgets/widget.js:390:15)
Node.js crashes soon after the error is raised.
Serving on http://127.0.0.1:8080
(press ctrl-C to exit)
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
Error executing boot module $:/plugins/joshuafontany/jsonmangler/modules/libs/jsoneditor-widget.js: {}
$:/plugins/joshuafontany/jsonmangler/modules/libs/jsoneditor-widget.js:24
if (!Element.prototype.closest) {
^
ReferenceError: Element is not defined
at $:/plugins/joshuafontany/jsonmangler/modules/libs/jsoneditor-widget.js:24:1
at $:/plugins/joshuafontany/jsonmangler/modules/libs/jsoneditor-widget.js:509:3
at Script.runInContext (vm.js:130:20)
at Script.runInNewContext (vm.js:136:17)
at Object.runInNewContext (vm.js:319:38)
at Object.$tw.utils.evalSandboxed (z:\opt64\tw5.1.21\boot\boot.js:518:5)
at Object.$tw.modules.execute (z:\opt64\tw5.1.21\boot\boot.js:794:15)
at z:\opt64\tw5.1.21\boot\boot.js:834:30
at Object.$tw.utils.each (z:\opt64\tw5.1.21\boot\boot.js:135:12)
at Object.$tw.modules.forEachModuleOfType (z:\opt64\tw5.1.21\boot\boot.js:833:12)
Still Node.js crashes soon after the error is raised.
Dragging plugins from your demo site to a fresh single page 5.1.21 empty.html, they are loaded without problems.
I gave up. I would really appreciate if I could experiment with your JSONEditor plugin, but it would be not very useful for my use case, if I could not use it in a Node.js environment.
Thanks in advance for your help. Best regards,
)+(
TW date format is not standard in some way.
FYI, when I try to open the demo wiki in IE11 (Windows 7, v6.1) I get the
internal javascript error "Object doesn't support property or method
'assign'". I can open tiddlywiki.com in this browser.
-- David Nebauer (Google Groups)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.