Copy some text containing a note and paste that as a new paragraph between the existing ones:
Effect:
A new note is created from the start of the copied note, through to the end of the last note.
I've done some investigation into this and here are my findings:
in generate-note-controller the isPasteInsideNote function checks if you're pasting content inside a note, and then calls wrap-in-note-around-paste if this is the case. This is incorrectly assuming you're pasting inside a note.
To reproduce:
Effect: A new note is created from the start of the copied note, through to the end of the last note.
I've done some investigation into this and here are my findings: in generate-note-controller the
isPasteInsideNote
function checks if you're pasting content inside a note, and then calls wrap-in-note-around-paste if this is the case. This is incorrectly assuming you're pasting inside a note.There is a branch with a scribe instance and noting set up here: https://github.com/guardian/scribe/tree/sd-fix-noting