Highlightr-Plugin
Highlightr-Plugin copied to clipboard
Highlightr No Longer Working w Obsidian v0.15.3
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?
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!
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.
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.
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
Yup, fix works -- see https://github.com/chetachiezikeuzor/Highlightr-Plugin/issues/42#issuecomment-1211549177