We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In action:composer:loaded add the following function call:
Call this function by:
toolTip('.composer[data-uuid="' + data.post_uuid + '"]'); function toolTip (composer_selector) { let tooltips = { 'bold': 'Help I am BOLD', //your icons - perhaps add translate here }; let showTooltip = (el, isSpan) => { let tool = (isSpan ? el.className.replace('span', '') : el.className.replace('ql-', '')).replace(/\s+/g, '.'); if (tooltips[tool]) { console.log('toolTip: ' + tooltips[tool]); if(isSpan) document.querySelector(composer_selector + ' .' + tool).setAttribute('title', tooltips[tool]); else document.querySelector(composer_selector + ' .ql-' + tool).setAttribute('title', tooltips[tool]); } }; let toolbarElement = document.querySelector(composer_selector + ' .ql-toolbar'); if (toolbarElement) { let matches = toolbarElement.querySelectorAll('button'); for (let el of matches) { showTooltip(el, false); } toolbarElement.querySelectorAll(':scope > span').forEach(function(element) { matches = element.querySelectorAll(':scope > span'); for (let el of matches) { showTooltip(el, true); } }); } //Enable tooltip $(composer_selector + ' [data-toggle="tooltip"]').tooltip(); } });
The text was updated successfully, but these errors were encountered:
Hi there -- this change cannot be added because it is not made in such a way that follows coding best practices.
window
Sorry, something went wrong.
Will keep this open, as tooltips are not working at this time.
No branches or pull requests
In action:composer:loaded add the following function call:
Call this function by:
The text was updated successfully, but these errors were encountered: