refactor: refactor clipboard

This commit is contained in:
QiShaoXuan
2022-08-21 22:58:41 +08:00
parent 66a36481e1
commit 17e454b1e6
24 changed files with 592 additions and 346 deletions
@@ -1,7 +1,6 @@
import {
BaseView,
AsyncBlock,
getTextProperties,
CreateView,
SelectBlock,
getTextHtml,
@@ -28,14 +27,6 @@ export class CodeBlock extends BaseView {
return block;
}
override getSelProperties(
block: AsyncBlock,
selectInfo: any
): DefaultColumnsValue {
const properties = super.getSelProperties(block, selectInfo);
return getTextProperties(properties, selectInfo);
}
// TODO: internal format not implemented yet
override html2block(
el: Element,