question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get the json data

See original GitHub issue

I am trying to get data, i called this.$refs.editor but this gives a big obj. Where I can get a actual generated data? Also is it possible to get the row html instead of the json data?

Thank you.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Loskircommented, Dec 31, 2019

The data is inside of save event.

<editor
    ref="editor"
    @save="json = $event"
/>

No, it’s not possible to get raw HTML data, you should use some renderer listed here https://github.com/codex-team/editor.js/issues/676#issuecomment-479778254 or write your own.

I’m using the twig one, it’s ok.

0reactions
Loskircommented, Oct 1, 2020

It’s great if it works, didn’t think it would

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with JSON - Learn web development | MDN
To obtain the JSON, we use an API called Fetch. This API allows us to make network requests to retrieve resources from a...
Read more >
JSON.parse() - W3Schools
JSON.parse() ... A common use of JSON is to exchange data to/from a web server. When receiving data from a web server, the...
Read more >
How to retrieve data from json data - Stack Overflow
As I assume that you are working with a JSON string, you first have to parse the string into and JSON object. Else...
Read more >
Web Basics - Accessing JSON data from URL - YouTube
This video shows how to access JSON data from a URL using JS and the JQuery resource.
Read more >
How to Use fetch() with JSON - Dmitri Pavlutin
2. GET JSON data ... loadNames();. await fetch('/api/names') starts a GET request, and evaluates to the response object when the request is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found