@@ -328,10 +328,6 @@ export const editor = {
dynamicLoadBlocks = 48;
(editor.element.querySelector("#dynamicLoadBlocks") as HTMLInputElement).value = "48";
}
- if (1024 < dynamicLoadBlocks) {
- dynamicLoadBlocks = 1024;
- (editor.element.querySelector("#dynamicLoadBlocks") as HTMLInputElement).value = "1024";
- }
fetchPost("/api/setting/setEditor", {
fullWidth: (editor.element.querySelector("#fullWidth") as HTMLInputElement).checked,
diff --git a/app/src/mobile/settings/editor.ts b/app/src/mobile/settings/editor.ts
index 66f88b761..6e6506d58 100644
--- a/app/src/mobile/settings/editor.ts
+++ b/app/src/mobile/settings/editor.ts
@@ -195,7 +195,7 @@ export const initEditor = () => {
diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go
index d94d72915..71a567966 100644
--- a/kernel/conf/editor.go
+++ b/kernel/conf/editor.go
@@ -56,7 +56,6 @@ type Editor struct {
const (
MinDynamicLoadBlocks = 48
- MaxDynamicLoadBlocks = 1024
)
func NewEditor() *Editor {
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index e4e101501..bc6286db2 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -247,9 +247,6 @@ func InitConf() {
if conf.MinDynamicLoadBlocks > Conf.Editor.DynamicLoadBlocks {
Conf.Editor.DynamicLoadBlocks = conf.MinDynamicLoadBlocks
}
- if conf.MaxDynamicLoadBlocks < Conf.Editor.DynamicLoadBlocks {
- Conf.Editor.DynamicLoadBlocks = conf.MaxDynamicLoadBlocks
- }
if 0 > Conf.Editor.BacklinkExpandCount {
Conf.Editor.BacklinkExpandCount = 0
}