slidewiki-platform icon indicating copy to clipboard operation
slidewiki-platform copied to clipboard

Swik 1952 drag and resize boxes dissapear after pressing undo

Open kadevgraaf opened this issue 6 years ago • 5 comments

kadevgraaf avatar Aug 21 '18 16:08 kadevgraaf

@kadevgraaf this does improve undo and I do not lose the input boxes after using undo button or ctrl-z. However, when I open a deck and attempt to edit a slide, input boxes do not show in slide edit. If I cancel slide edit and attempt to edit the same or a different slide then the input boxes appear. This seems to be a bug on your branch as I can't replicate on master.

abijames avatar Aug 31 '18 13:08 abijames

I tried to test this feature. It seems to work without removing the resize/drag boxes. However, when I repeat undo and redo several times. It gives me the following error:

Uncaught Error: Failed to execute 'setEnd' on 'Range': The offset 6 is larger than the node's length (0).
    at Dispatcher.throwOrCallErrorHandler [as _throwOrCallErrorHandler] (Dispatcher.js:170)
    at DispatcherContext.dispatch (DispatcherContext.js:117)
    at undoClick (undoClick.js:6)
    at callAction.js:21
    at t.exports (settings.js:1)
    at g.(anonymous function) (http://localhost:3000/public/js/settings.js:1:28415)
    at Number.y (settings.js:1)
    at MessagePort.b (settings.js:1)
  | throwOrCallErrorHandler | @ | Dispatcher.js:170
-- | -- | -- | --
  | dispatch | @ | DispatcherContext.js:117
  | undoClick | @ | undoClick.js:6
  | (anonymous) | @ | callAction.js:21
  | t.exports | @ | settings.js:1
  | g.(anonymous function) | @ | settings.js:1
  | y | @ | settings.js:1
  | b | @ | settings.js:1


ali1k avatar Sep 10 '18 07:09 ali1k

@ali1k I have tried testing this again and found it is no longer working. I cannot get input boxes on any slides. Was there any conflicts when you merged in master?

abijames avatar Sep 10 '18 16:09 abijames

@abijames weird! there was no conflict with master. Did you try napa command after you updated your branch? CKeditor relies on some plugins that are added using napa. If you do npm i, it automatically runs napa too.

ali1k avatar Sep 10 '18 16:09 ali1k

@ali1k @kadevgraaf I have tested this again. I am still experiencing the problem that when I first attempt to edit a slide on a deck, there are not input boxes. I do not get this on the same decks when using master.

Also, the re-do button doesn't seem to work. The ckeditor redo button is often disabled so that you know that you cannot use it. Finally, I am not convinced about the location of the undo/redo buttons at the top of the left-menu. This gives them too much prominence over the other menu items which are all about add or changing blocks of content. There is also a problem if you scroll down to context at the bottom of the slide (necessary on smaller laptop screens) as they are no longer visible whereas the ckeditor toolbar moves to the bottom of the screen. We also have duplicate undo/redo buttons as they are still on the ckeditor toolbar. So I think this needs further work before merging.

abijames avatar Sep 14 '18 12:09 abijames