editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

The sanitize of the save method and the convert to method interfere with each other

Open chf-gh opened this issue 1 year ago • 0 comments

The format required by the block save method:

static get sanitize(){
	return {
		url: false,
		caption: {
                     a: true
                 }
	}
}

The outermost object returned is a property, not a label. convent to also uses this method, but it passes the result directly as a rule to and HTMLJanitor, as shown in the following figure

image

11

which causes the cleanup to fail. Also, I noticed that even with the sanitize method configured, the save method still didn't clean up the data.

chf-gh avatar Aug 16 '24 08:08 chf-gh