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