-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest update 2.1.2 brakes the editor #108
Comments
Thank you for bringing this up, can you please confirm if 2.1.3 fixes this issue |
2.1.3 it's not working for me, seems like it's missing something:
2.1.1 works but this feature stopped working:
Even though the documentation still seems to be the same. |
This should be fixed now (2.1.4), there was indeed an issue with the release of 2.1.3 |
Still getting errors in It appears this has not been fixed in I think instead it is originating from the I can see why I had a read through
Upon reading the Structured Clone Algorithm link, there is a big section about what doesn't work with this (https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#things_that_dont_work_with_structured_clone)
When I look at where these Ideally a solution could be found via the component and I'm not entirely sure this is where the problem is, as, from what I can see on that document, this function cloning issue isn't new so I'd of thought this might have raised it's head prior to Vue 3 upgrades.. Our application uses Broadcast Channel's too and we also faced this issue when upgrading to Vue 3, it seemed to no longer like passing key values that were associated with a data variable, for example: Options API Component import { defaultVariableData } from '@location/location2/location3'
// ...
data() {
myVar: defaultVariableData,
broadcastChannel: new BroadcastChannel('my-channel-name')
},
methods: {
myMethod () {
// This will trigger the same postMessage warning, presuming it is due to how Vue fetches this data.
this.broadcastChannel.postMessage({
myKey: this.myVar
})
}
} As opposed to import { toRaw } from 'vue'
// ....
myMethod () {
// This fixes the issue.
this.broadcastChannel.postMessage({
myKey: toRaw(this.myVar)
})
} Our problem here is, we don't have access other than a minified file to where the |
Update on @PF-Liam 's issues: we manage to solve our issues with DataCloneErrors by doing two things:
Ideally I would say the Vue library should provide some kind of wrapper for the Editor class which calls Failing this, some guidance in the documentation about this error could really help. |
The latest update to version 2.1.2 brakes the editor (2.1.1 still works). The following error occurs:
This can be reproduced using the example editor from this repository and doing the following steps:
Then open the application in the browser and hit the Save Design button. Then you will see this:
The error occurs when using the
exportHtml
function of the editor.The text was updated successfully, but these errors were encountered: