Skip to content

Commit

Permalink
fix : [Notes] insert position is wrong EXO-65312 - Meeds-io/meeds#1019
Browse files Browse the repository at this point in the history
Prior to this change, when create new notes page, add 3 lines of content and on 4th line insert an image, this image inserted on top of notes content . To fix this problem, remove the reset of the ckeditor when opening the customPluginsDrawer drawer and add a setTimeout with 2 ms to initCKEditor . After this change, image inserted at last cursor position.
  • Loading branch information
akhanfir committed Jul 21, 2023
1 parent 7a37f1c commit 40c099b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,15 @@ export default {
mounted() {
if (this.spaceId) {
this.init();
this.$root.$on('initCkeditor',() => this.initCKEditor());
}
},
methods: {
init() {
this.initCKEditor();
this.setToolBarEffect();
this.initDone = true;
setTimeout(() => {
this.initCKEditor();
this.setToolBarEffect();
this.initDone = true;
},200);
},
autoSave() {
// No draft saving if init not done or in edit mode for the moment
Expand Down

0 comments on commit 40c099b

Please sign in to comment.