Move image zooming back to unvendorized lib (#6980)

* Move image zooming back to unvendorized lib

* refactor

* perf: Avoid mounting zoom dialog until interacted

* Add captions to lightbox

* lightbox
This commit is contained in:
Tom Moor
2024-06-03 20:26:25 -04:00
committed by GitHub
parent 62ebba1c32
commit 23606dad1d
15 changed files with 207 additions and 1260 deletions

View File

@@ -618,6 +618,13 @@ export class Editor extends React.PureComponent<
*/
public getHeadings = () => ProsemirrorHelper.getHeadings(this.view.state.doc);
/**
* Return the images in the current editor.
*
* @returns A list of images in the document
*/
public getImages = () => ProsemirrorHelper.getImages(this.view.state.doc);
/**
* Return the tasks/checkmarks in the current editor.
*