-
Notifications
You must be signed in to change notification settings - Fork 139
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
SHIFT + ENTER to make new line? #103
Comments
I'm running into the same problem. |
Looks like the issue is caused by Line 932 in 5907135
|
@KevinBeckers May I ask why your merge request was blocked? And did you solve the issue by removing +edit) Oh, your pr isn't reviewed yet ;) |
After more research, the problem seems to vary by browser. Different browsers have different behavior in a 'contentEditable DIV'. Safari for example, which places a new div. Chrome adds a new line and Firefox ads a |
Just adding that I am having the same problem. It would be great if this could be supported somehow! Even with these browsers handling everything differently |
I have the same issue. Would be great if we could find a solution. @KevinBeckers Did you by any chance find something that worked? |
@intaek-h @KevinBeckers @evanshabsove @Thimows The reason is that Just extend this plugin, then add a sanitization configuration, like this: import Table from '@editorjs/table'
export default class TablePlugin extends Table {
static get sanitize(){
return {
br: {},
// ... other configs
}
}
} |
Thanks @manh-gntvn the suggested approach works import Table from '@editorjs/table'
export default class TablePlugin extends Table {
static get sanitize() {
return {
b: true,
a: {
href: true,
},
i: true,
br: {},
};
}
} |
Inside a table cell, I press shift + enter to create a new line. It displays fine. However in JSON, the new line is not saved, therefore not printed.
Any ideas on keeping the style in JSON?
The text was updated successfully, but these errors were encountered: