mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: Move MathJax into src/element/subtypes
for the
`excalidraw-app` separation, maintaining lazy-loading of MathJax.
This commit is contained in:
parent
4d6d6cf129
commit
8eb3191b3f
23 changed files with 32 additions and 41 deletions
|
@ -278,7 +278,7 @@ import {
|
|||
prepareSubtype,
|
||||
selectSubtype,
|
||||
subtypeActionPredicate,
|
||||
} from "../subtypes";
|
||||
} from "../element/subtypes";
|
||||
import {
|
||||
dataURLToFile,
|
||||
generateIdFromFile,
|
||||
|
@ -583,7 +583,6 @@ class App extends React.Component<AppProps, AppState> {
|
|||
|
||||
this.actionManager.registerAction(createUndoAction(this.history));
|
||||
this.actionManager.registerAction(createRedoAction(this.history));
|
||||
// Call `this.addSubtype()` here for `@excalidraw/excalidraw`-specific subtypes
|
||||
this.actionManager.registerActionPredicate(subtypeActionPredicate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue