selection manipulation

This commit is contained in:
Juergen Kunz
2025-06-24 16:53:54 +00:00
parent 1041814823
commit bd223f77d0
2 changed files with 109 additions and 12 deletions

View File

@ -667,7 +667,10 @@ export class DeesWysiwygBlock extends DeesElement {
} else if (this.block.type === 'code') {
return editableElement.textContent || '';
} else {
return editableElement.innerHTML || '';
// For regular blocks, get the innerHTML which includes formatting tags
const content = editableElement.innerHTML || '';
console.log('Getting content from block:', content);
return content;
}
}