Highlightr-Plugin icon indicating copy to clipboard operation
Highlightr-Plugin copied to clipboard

Highlightr No Longer Working w Obsidian v0.15.3

Open Paddy1058 opened this issue 2 years ago • 5 comments

I was enjoying using Highlightr, but it no longer works. Only thing I can identify is recent update to Ob v0.15.3. Have tried uninstalling and reinstalling plugin.

Anyone else having this problem? Solutions?

Paddy1058 avatar Jun 29 '22 18:06 Paddy1058

I apologize for the lack of updates to this plugin. I will take a look at this tonight and see what I can do. Thank you for your patience!

chetachiezikeuzor avatar Jun 29 '22 20:06 chetachiezikeuzor

FYI, I found a partial work a round -- by setting hotkeys for the various colors, I can now again add highlights. But setting a hot key to open the highlightr doesn't work -- it just doesn't respond, and doesn't display the choice of colors. Also, to unlighlight, right-clicking on the highlight doesn't bring up the unhighlight menu, but raises a note that "focus must be in editor" (I'm using live preview). Clicking on the highlight puts it in edit mode, then right-clicking brings up unhighlight option, and clicking then unhighlights. Hope this may help in troubleshooting. Really like this plugin when it was working normally. p.s. I'm using Blue Topaz theme; tried another one, Nick Milo's and it didn't make a difference. p.s. Updated Obsidian to v0.15.4, still same problem.

Paddy1058 avatar Jul 05 '22 04:07 Paddy1058

I found another factor affecting this plugin: whether the Obsidian css is turned on or off in Settings/Appearance, down at the bottom of the page. If it is turned on, then the highlight appears but is not the chosen color. Turning the css off then allows the chosen color highlight to appear -- although still very limited, as described above. Of course, this might depend on the css file in the vault.

Paddy1058 avatar Jul 20 '22 19:07 Paddy1058

I have a workaround, and possibly a starting point for @chetachiezikeuzor's investigation. It seems the Obsidian API expects you to play nice with their context menus, so I suspect a fix would require using the menu.addItem method rather than overwriting the dom.

You can find the crude workaround here: https://github.com/chetachiezikeuzor/Highlightr-Plugin/issues/42#issuecomment-1203250330

remerle avatar Aug 03 '22 12:08 remerle

Yup, fix works -- see https://github.com/chetachiezikeuzor/Highlightr-Plugin/issues/42#issuecomment-1211549177

Paddy1058 avatar Aug 13 '22 20:08 Paddy1058