Fixed page copying not retaining content

Was when there was no markdown content.
Added tests to cover both HTML and markdown scenarios.
Also removed old console.log

Related to #2463
This commit is contained in:
Dan Brown
2021-01-09 19:39:09 +00:00
parent 831f441879
commit 526be33ab2
4 changed files with 92 additions and 71 deletions

View File

@ -74,7 +74,6 @@ class PageEditor {
}
setInitialFocus() {
console.log({'HAS': this.hasDefaultTitle});
if (this.hasDefaultTitle) {
return this.titleElem.select();
}