- Clone the repo
yarn install
in the root andyarn install
andyarn build
in CKEDitor folderyarn start
in the root
- Click toggle editor button
- Upload some images
- Edit Image and Save
- Click toggle editor button again to hide editor
- Click toggle editor button again to show editor
- Edit again image and try Save
- (❌ Problem here) There is an issue where the edited results are not being reflected
The mentioned steps abstract the UX of projects utilizing actual imgpen and ckeditor. Similarly, the code written in this repository also abstracts the code of the projects it is used for.
The edited image from step 7 should be reflected.
I am suspicious of the following imgpen.js code received through the network.
The basis for this suspicion lies in the difference between the following two scenarios.
- Click toggle editor button
- Upload some images
- Edit Image and Cancle (don't save the edited results here. However, since the image editor needs to be displayed on the screen, it can be inferred that the internal code of imgpen.js has been executed)
- Click toggle editor button again to hide editor
- Click toggle editor button again to show editor
- Edit again image and Save
- (❌ Problem here) There is an issue where the edited results are not being reflected
🤔 Just to note, the issue persists even after applying the 'imgpen' key following payment
- Click toggle editor button
- Upload some images
- Click toggle editor button again to hide editor (In contrast to the previous situation, as no attempt was made to edit the image, the code of imgpen.js is not executed)
- Click toggle editor button again to show editor
- Edit Image and Save
- It can be confirmed that the edited results are reflected correctly
When considering the two previous scenarios together, it is suspected that the root cause of the issue lies within imgpen.js
- Window 11 Pro
- Chrome
I have made some modifications to the internal code of imgpencommand.js within the @edsdk/flmngr-ckeditor5 package located in the CKEditor folder. The reason for these modifications is as follows:
You can also find the modified content in the TXT file located in the patches folder within the CKEditor directory