Add 'n' shortcut for new doc
Fixed cmd+enter shortcut to publish doc Fixed keyboard shortcut display on non-mac Fixed heading alignment Fixed documents smaller than page should not scroll
This commit is contained in:
@@ -86,7 +86,7 @@ export default class Document extends BaseModel {
|
||||
@computed
|
||||
get isEmpty(): boolean {
|
||||
// Check if the document title has been modified and user generated content exists
|
||||
return this.text.replace(new RegExp(`^#$`), '').trim().length === 0;
|
||||
return this.text.replace(/^#/, '').trim().length === 0;
|
||||
}
|
||||
|
||||
@computed
|
||||
|
||||
Reference in New Issue
Block a user