2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-04 08:34:28 -06:00

@situphen 's review

This commit is contained in:
firm1 2020-01-23 08:35:29 +01:00
parent 98fbe56248
commit eea2917be1
2 changed files with 5 additions and 7 deletions

View File

@ -323,7 +323,7 @@
position: absolute;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 8px 8px;
padding: 8px;
z-index: 2;
}

View File

@ -114,7 +114,7 @@ function fixShortcut(name) {
* Create dropdown block
*/
function createToolbarDropdown(options, enableTooltips, shortcuts, parent) {
var el = createToolbarButton(options, enableTooltips, shortcuts, 'div');
var el = createToolbarButton(options, enableTooltips, shortcuts, 'div', parent);
el.className += ' easymde-dropdown';
var content = document.createElement('div');
content.className = 'easymde-dropdown-content';
@ -2282,13 +2282,11 @@ EasyMDE.prototype.createToolbar = function (items) {
var el;
if (item === '|') {
el = createSep();
} else {
if (item.children) {
} else if (item.children) {
el = createToolbarDropdown(item, self.options.toolbarTips, self.options.shortcuts, self);
} else {
el = createToolbarButton(item, self.options.toolbarTips, self.options.shortcuts, 'button', self);
}
}
toolbarData[item.name || item] = el;