Skip to content
Snippets Groups Projects
Commit 520a8780 authored by rhenck's avatar rhenck
Browse files

[editor] Change TextEditor extension default font size to not be null

This looked bad having a null value in the DOM.
16 is the default font size of the app right now.
parent 13a283ce
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ export const fontSizeExtension = TextStyle.extend({ ...@@ -13,7 +13,7 @@ export const fontSizeExtension = TextStyle.extend({
addAttributes() { addAttributes() {
return { return {
fontSize: { fontSize: {
default: null, default: 16,
parseHTML: element => Number(element.style.fontSize.slice(0, -2)), parseHTML: element => Number(element.style.fontSize.slice(0, -2)),
renderHTML: attributes => ({ renderHTML: attributes => ({
style: `font-size: ${attributes.fontSize}px` style: `font-size: ${attributes.fontSize}px`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment