sdasd
This commit is contained in:
@@ -276,8 +276,7 @@
|
|||||||
optEl.textContent = opt.label;
|
optEl.textContent = opt.label;
|
||||||
select.appendChild(optEl);
|
select.appendChild(optEl);
|
||||||
});
|
});
|
||||||
select.addEventListener('mousedown', (evt) => {
|
select.addEventListener('mousedown', () => {
|
||||||
evt.preventDefault();
|
|
||||||
saveSelection();
|
saveSelection();
|
||||||
});
|
});
|
||||||
select.addEventListener('change', () => {
|
select.addEventListener('change', () => {
|
||||||
@@ -357,24 +356,7 @@
|
|||||||
applyInlineStyle('fontSize', `${value}px`);
|
applyInlineStyle('fontSize', `${value}px`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const emojiBtn = doc.createElement('button');
|
// Emoji-Picker entfernt (auf Wunsch) – kann spaeter als echter Picker wiederkommen.
|
||||||
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);
|
|
||||||
|
|
||||||
container.appendChild(toolbar);
|
container.appendChild(toolbar);
|
||||||
container.appendChild(content);
|
container.appendChild(content);
|
||||||
|
|||||||
Reference in New Issue
Block a user