Giter Site home page Giter Site logo

tw5-jsoneditor's People

Contributors

btheado avatar ento avatar joshuafontany avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ento zeta1999

tw5-jsoneditor's Issues

Errors with minified versions of plugin

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.

  • I tried to build minified plugin.info rel. 0.0.6, starting from the tid file downloaded from your demo site (I did it with many other plugins and it always worked). It raises the following errors while loading:
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,

)+(

Need to polyfill .assign() for IE11

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.