Comments (5)
Ahhhh never mind! My mistake. In my model I was editing the property output using the getter method:
/**
* Get content attribute, applying any logic needed
* for parsing the output.
*/
public function getContentAttribute($content)
{
return NovaEditorJs::generateHtmlOutput(json_decode($content));
}
This of course was being used by Nova also..
from nova-editor-js.
I do actually get the same issue if I add a code block but only if the code block is the only content in the editor. Not a massive issue now I know but thought I'd reopen so you're aware, maybe something to investigate.
from nova-editor-js.
This is an issue of the Editor.js itself probably since it will fail like this if the content is invalid.
from nova-editor-js.
I do actually get the same issue if I add a code block but only if the code block is the only content in the editor. Not a massive issue now I know but thought I'd reopen so you're aware, maybe something to investigate.
Hmm thats strange. Just played around with this a bit, and attempted to have just the code block but could not replicate it with the latest release. Unsure if it was an issue thats now fixed? If you do upgrade do let me know if you get the same errors.
from nova-editor-js.
Closing for now.
from nova-editor-js.
Related Issues (20)
- Error in nova 4 when attaching links that have image. HOT 3
- i18n setting
- Add support for Laravel Nova 4.0 HOT 1
- Package further updates HOT 1
- Can't extend the Editorjs
- Atribute casting HOT 1
- Wrong AllowedTags in Paragraph with Nova 4 HOT 1
- Update spatie/image HOT 2
- foreach() argument error HOT 5
- anchors not rendering HOT 4
- Embed block doesn't show HOT 4
- Something went wrong: Field `blocks` is missing HOT 4
- Error when saving the same content HOT 7
- Border top when Editor is first element in panel
- Add support for Block Tunes API? HOT 6
- generateHtmlOutput Renders encoded HTML entities HOT 3
- Throw events when an image has been uploaded
- Extend in Vite HOT 2
- Edit header toolSettings levels
- Compatibility issue with Laravel 10 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-editor-js.