refactor note for page editor js

page editor is getting a bit bulky so it needs some thought to slim it up
This commit is contained in:
RXP 2025-05-27 19:10:54 -06:00
parent 82db115baf
commit a0734724c6
Signed by: ro
GPG key ID: 85BF909846273553

View file

@ -16,6 +16,7 @@ export default class PostEditor {
//-------------------------- //--------------------------
// constructor // constructor
//-------------------------- //--------------------------
//RECTOR: This file is getting too big and needs to be rethought out
constructor() { constructor() {
this.processing = false; this.processing = false;
this.textSelected = false; this.textSelected = false;
@ -90,7 +91,7 @@ export default class PostEditor {
document.documentElement || document.documentElement ||
document.body.parentNode || document.body.parentNode ||
document.body document.body
).scrollTop; ).scrollTop;
// Get cursor position // Get cursor position
let posX = event.clientX - 110; let posX = event.clientX - 110;