notiz-dev / notiz

Frontend for notiz.dev. Built with Angular and Scully 👋
https://notiz.dev
67 stars 9 forks source link

Cannot select/copy Text in Code Snippets #104

Closed garygrossgarten closed 4 years ago

marcjulian commented 4 years ago

@garygrossgarten is this what you mean? My selection is always removed automatically Screen Recording 2020-07-20 at 15 59 26

garygrossgarten commented 4 years ago

yes

marcjulian commented 4 years ago

Strange behavior, might come from prismjs highlighting.

marcjulian commented 4 years ago

I tested it on prismjs docs and it is not happening there.

marcjulian commented 4 years ago

ngAfterViewChecked is triggered on text selection and highlight is always triggered again, thus removing the text selection

ngAfterViewChecked() {
    this.highlightService.highlightAll();
}
marcjulian commented 4 years ago

@garygrossgarten alternative could be scully-plugin-prism-highlight