sdasd
This commit is contained in:
@@ -276,8 +276,7 @@
|
||||
optEl.textContent = opt.label;
|
||||
select.appendChild(optEl);
|
||||
});
|
||||
select.addEventListener('mousedown', (evt) => {
|
||||
evt.preventDefault();
|
||||
select.addEventListener('mousedown', () => {
|
||||
saveSelection();
|
||||
});
|
||||
select.addEventListener('change', () => {
|
||||
@@ -357,24 +356,7 @@
|
||||
applyInlineStyle('fontSize', `${value}px`);
|
||||
});
|
||||
|
||||
const emojiBtn = doc.createElement('button');
|
||||
emojiBtn.type = 'button';
|
||||
emojiBtn.textContent = ':-)';
|
||||
emojiBtn.title = 'Emoticon einfuegen';
|
||||
emojiBtn.style.padding = '4px 8px';
|
||||
emojiBtn.style.border = '1px solid #cbd5f5';
|
||||
emojiBtn.style.borderRadius = '4px';
|
||||
emojiBtn.style.background = '#f8fafc';
|
||||
emojiBtn.style.cursor = 'pointer';
|
||||
emojiBtn.addEventListener('mousedown', (evt) => {
|
||||
evt.preventDefault();
|
||||
saveSelection();
|
||||
});
|
||||
emojiBtn.addEventListener('click', () => {
|
||||
const pick = prompt('Emoticon eingeben', ':)');
|
||||
if (pick) exec('insertText', pick);
|
||||
});
|
||||
toolbar.appendChild(emojiBtn);
|
||||
// Emoji-Picker entfernt (auf Wunsch) – kann spaeter als echter Picker wiederkommen.
|
||||
|
||||
container.appendChild(toolbar);
|
||||
container.appendChild(content);
|
||||
|
||||
Reference in New Issue
Block a user