summernote-ext-highlight icon indicating copy to clipboard operation
summernote-ext-highlight copied to clipboard

Inserts the code always at the beginning.

Open Alexxiss opened this issue 7 years ago • 6 comments

Hello! Thank you for Your decision. But I'm having some problems

Why the code is always inserted at the very beginning?

For example write some text. After it I want to insert source code. And it turns out 2017-05-13_13-10-13 In the console there are no errors. summernote 0.8.3

Please tell me how to fix it?

Alexxiss avatar May 13 '17 10:05 Alexxiss

this seems to be fixed with the new patch.

shaunfreeman avatar Sep 17 '17 07:09 shaunfreeman

I am seeing this issue in v0.7.1 , Summernote: v0.8.8

kiksy avatar Nov 03 '17 11:11 kiksy

Interestingly, switching out my code from the minified version to the src for debugging ( https://raw.githubusercontent.com/heyanlong/summernote-ext-highlight/master/src/summernote-ext-highlight.js ) has solved the issue. The code is inserted whereever the cursor is positioned as expected.

kiksy avatar Nov 03 '17 11:11 kiksy

@kiksy What's all this about?

heyanlong avatar Nov 06 '17 01:11 heyanlong

3 years later same issue here.

@heyanlong I think it's clear enough what's all this about, just take a look at screenshot author shared.

Whenever we insert code it jumps at the top of our note (editor) regardless which line we're trying to add the code.

robertnicjoo avatar Dec 04 '20 07:12 robertnicjoo

Can you provide testing procedures?

heyanlong avatar Dec 04 '20 09:12 heyanlong