Skip to content

Commit

Permalink
inicio balloon table
Browse files Browse the repository at this point in the history
  • Loading branch information
skaduhs5232 committed Apr 26, 2024
1 parent 9e9ded6 commit f6ea413
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 33 deletions.
13 changes: 9 additions & 4 deletions src/assets/icons/Editor/image-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions src/assets/icons/Editor/image-middle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions src/assets/icons/Editor/image-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/icons/Editor/merge-tableCells.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/Editor/starred-cell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/Editor/starred-table.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/icons/Editor/table-columns.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/icons/Editor/table-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/editor/ui/Balloon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ export class Balloon {
this.toolbar = toolbar
}

on() {
this.ballonMenu.style.display = 'block'
}

off() {
this.ballonMenu.style.display = 'none'
}

render() {
this.ballonMenu = document.createElement('div')
this.ballonMenu.className = 'baloon-menu'
Expand Down
2 changes: 0 additions & 2 deletions src/extensions/image/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ function convertToBase64(input: HTMLInputElement, editor: ExitusEditor) {
? { width: maxWidth, height: Math.round(maxWidth / (img.width / img.height)) }
: { width: maxHeight * (img.width / img.height), height: maxHeight }

console.log(img.width, img.height, newDimension)

const canvas = document.createElement('canvas')

canvas.width = img.width
Expand Down
1 change: 0 additions & 1 deletion src/extensions/image/imageView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ export class ImageView implements NodeView {
if (node.type !== this.node.type) {
return false
}
// console.log(this.node, node)
this.node = node

return true
Expand Down
Loading

0 comments on commit f6ea413

Please sign in to comment.