Giter Club home page Giter Club logo

juicy-jsoneditor's People

Contributors

alshakero avatar binbalenci avatar dependabot[bot] avatar juravenator avatar samuelli avatar tomalec avatar warpech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

juicy-jsoneditor's Issues

Javascript 'Syntax error' with internet explorer

Steps to reproduce

Use in Internet Explorer 11

Live Demo

http://juicy.github.io/juicy-jsoneditor/
As a quick note, the sample jsbin provided in this template is missing the appropriate referenced to fast-json-patch in the polygit path.

Expected result

Juicy-jsoneditor should be usable.

Actual result

Element fails to construct.
Syntax error
SCRIPT1002: Syntax error

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Screenshot

change events

is there any way to prevent the change event from firing on every edit and fire only when the editor loses focus? right now it is triggered on each keystroke.

Binding json data into a lazy loaded template

This is some seriously good stuff.
Thanks for writing this !!

I have a use case question - not a feature request.

The user has lots of templates. Let's say they are in markdown and it represents email templates.

The user also has a json schema and json datasets that conforms to that json schema.

With juicy, I think I can build a way for the user to put special tags in the template and for the user to map json data to the tags.
And show the result of the data binding.

The key point is that juicy becomes an IDE of sorts because everything is dynamic.

I actually want to do the data bind on the server in golang. But I want to make it easy for the user to visually edit markup and configure the data mapping of the json to the tags inside the template.

Your components look to be made to do this type of thing or am a madman ? :)

Missing ../jsoneditor/dist/jsoneditor.min.css when using Vulcanize tool.

Hi!

First of all thanks a lot for creating this Polymer wrapper around json-editor. Currently, we are using it in one of our projects and seems like we've encountered one problem:

Steps to reproduce

  1. Configure the project to use Polymer v1.
  2. Build the project using Vulcanize tool.
  3. Since Vulcanize tool follows HTML Imports and <script> tags to inline these external assets into a single page, we will encounter the problem of corrupted import paths. (After reducing(flattening) all imported assets into the final bundle, all the relative paths which were previously resolved imperatively in the runtime using f.e. Polymer.ResolveUrl.resolveUrl("../jsoneditor/dist/jsoneditor.min.css", script.ownerDocument.baseURI); won't be able to resolve.)

Live Demo

Let's say we have following structure:

app
|___ bower_components
|   |___ jsoneditor
|   |   |___ dist
|   |       |___ jsoneditor.min.css
|   |___ juicy-jsoneditor
|       |___ juicy-jsoneditor.html <=== in the runtime tries to resolve ../jsoneditor/dist/jsoneditor.min.css
|___ elements.html <=== here we are importing juicy-jsoneditor.html

Example above works fine till the moment Vulcanize tool starts bundling and produces following:

app
|___ bower_components
|   |___ jsoneditor
|   |   |___ dist
|   |       |___ jsoneditor.min.css
|   |___ juicy-jsoneditor
|       |___ juicy-jsoneditor.html <=== this page is completely included inside of elements.html page.
|___ elements.html <=== juicy-jsoneditor.html in runtime tries to resolve ../jsoneditor/dist/jsoneditor.min.css but path is already corrupted.

Expected result

Be able to resolve ../jsoneditor/dist/jsoneditor.min.css dependency on build step using Vulcanize tool.

Actual result

Vulcanize tool is not able to detect and include into bundle imperative dependencies which are resolved in the runtime. Right now, ../jsoneditor/dist/jsoneditor.min.css is not resolved.

Browsers affected

  • [+] Chrome
  • [+] Firefox
  • [+] Edge
  • [+] Safari 9
  • [+] Safari 8
  • [+] IE 11

In general, it's not a browser issue. More likely architectural one.

Screenshot

No styles :(
image

json editor set schema

Can you please post a working example of getting access to the actual editor field? I'd like to set a schema on it. I can't see how it is exposed, nor events being fired when it is initialised.

Many thanks for the lib. Good work.


Edit: modes='["code", "form", "text", "tree", "view"]' is the new syntax in Polymer. The examples use: modes="['code', 'form', 'text', 'tree', 'view']".

parse error in 'code' mode

when I using editor's 'code' mode, it cause an json pase error.

Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'EOF'

Switch to use josdejong/jsoneditor

juicy-jsoneditor currently uses https://github.com/tomalec/jsoneditor/tree/102-onChangeArgumentsBuilt as the JSON tree rendering engine, which is josdejong/jsoneditor enhanced to give JSON Patch object as an argument to change callback.

As discussed between me and @tomalec on Hangouts, it should be possible to revert to upstream josdejong/jsoneditor and use obtain the JSON Patch from a different approach - for example by calling jsonpatch.compare

Reverting to use josdejong/jsoneditor will give us access to improvements made on regular base in the upstream repo.

In consequence, we will get improved JSON editor in starcounter-debug-aid

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.