feat(editor): Add wysiwyg editor
This commit is contained in:
@@ -53,7 +53,6 @@ export class WysiwygBlocks {
|
||||
return html`
|
||||
<div
|
||||
class="block ${block.type} ${isSelected ? 'selected' : ''}"
|
||||
data-block-id="${block.id}"
|
||||
contenteditable="true"
|
||||
@input="${handlers.onInput}"
|
||||
@keydown="${handlers.onKeyDown}"
|
||||
@@ -61,7 +60,6 @@ export class WysiwygBlocks {
|
||||
@blur="${handlers.onBlur}"
|
||||
@compositionstart="${handlers.onCompositionStart}"
|
||||
@compositionend="${handlers.onCompositionEnd}"
|
||||
.textContent="${block.content}"
|
||||
></div>
|
||||
`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user