Skip to content

Commit

Permalink
Merge pull request #2684 from microsoft/u/juliaroldi/trigger-auto-format
Browse files Browse the repository at this point in the history
Auto format trigger
  • Loading branch information
juliaroldi authored Jun 6, 2024
2 parents a9dd82c + 7062cd0 commit 091e319
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ export const formatContentModel: FormatContentModel = (
domToModelOptions
) => {
const {
apiName,
onNodeCreated,
getChangeData,
changeSource,
rawEvent,
selectionOverride,
scrollCaretIntoView: scroll,
Expand Down Expand Up @@ -79,9 +77,9 @@ export const formatContentModel: FormatContentModel = (
eventType: 'contentChanged',
contentModel: clearModelCache ? undefined : model,
selection: clearModelCache ? undefined : selection,
source: changeSource || ChangeSource.Format,
source: options?.changeSource || ChangeSource.Format,
data: getChangeData?.(),
formatApiName: apiName,
formatApiName: options?.apiName,
changedEntities: getChangedEntities(context, rawEvent),
};

Expand Down

0 comments on commit 091e319

Please sign in to comment.