Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix css selector to append gif toolbar button back #64

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function addToolbarButton() {
// the toolbar item to any new toolbars.
observeEl(toolbar, () => {
let toolbarGroup = select.all(
'.toolbar-commenting > :not([class*="--hidden"]):not(button)',
'.ActionBar-item-container > :not([class*="--hidden"]):not(button)',
MinhPhu0304 marked this conversation as resolved.
Show resolved Hide resolved
toolbar
)
toolbarGroup = toolbarGroup[toolbarGroup.length - 1]
MinhPhu0304 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -141,7 +141,7 @@ function addToolbarButton() {
* Watches for comments that might be dynamically added, then adds the button the the WYSIWYG when they are.
*/
function observeDiscussion() {
observe('md-task-list', () => addToolbarButton())
observe('markdown-toolbar', () => addToolbarButton())
}

/**
Expand Down