Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: jiangmencity <[email protected]>
  • Loading branch information
jiangmencity committed Jan 20, 2025
1 parent 3eeec39 commit c11f5cc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/api/canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ editor.on('canvas:frame:load', ({ window }) => {
});
```

* `canvas:frame:load:head` Frame head loaded in canvas. The event is triggered right after iframe's finished to load the head elemenets (eg. scripts)
* `canvas:frame:load:head` Frame head loaded in canvas. The event is triggered right after iframe's finished to load the head elements (eg. scripts)

```javascript
editor.on('canvas:frame:load:head', ({ window }) => {
Expand Down Expand Up @@ -246,7 +246,7 @@ passed to it. For instance, you can scroll smoothly by using
const selected = editor.getSelected();
// Scroll smoothly (this behavior can be polyfilled)
canvas.scrollTo(selected, { behavior: 'smooth' });
// Force the scroll, even if the element is alredy visible
// Force the scroll, even if the element is already visible
canvas.scrollTo(selected, { force: true });
```

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/canvas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export default class CanvasModule extends Module<CanvasConfig> {
* const selected = editor.getSelected();
* // Scroll smoothly (this behavior can be polyfilled)
* canvas.scrollTo(selected, { behavior: 'smooth' });
* // Force the scroll, even if the element is alredy visible
* // Force the scroll, even if the element is already visible
* canvas.scrollTo(selected, { force: true });
*/
scrollTo(el: any, opts = {}) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/canvas/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export enum CanvasEvents {
frameLoad = 'canvas:frame:load',

/**
* @event `canvas:frame:load:head` Frame head loaded in canvas. The event is triggered right after iframe's finished to load the head elemenets (eg. scripts)
* @event `canvas:frame:load:head` Frame head loaded in canvas. The event is triggered right after iframe's finished to load the head elements (eg. scripts)
* @example
* editor.on('canvas:frame:load:head', ({ window }) => {
* console.log('Frame head loaded', window);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/css_composer/view/CssRulesView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class CssRulesView extends View {

// I have to render keyframes of the same name together
// Unfortunately at the moment I didn't find the way of appending them
// if not staticly, via appendData
// if not statically, via appendData
if (model.get('atRuleType') === 'keyframes') {
const atRule = model.getAtRule();
let atRuleEl = this.atRules[atRule];
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/dom_components/view/ComponentTextView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class ComponentTextView<TComp extends ComponentText = ComponentTe
const contentOpt: ObjectAny = { fromDisable: 1, ...opts };
model.set('content', '', contentOpt);

// If there is a custom RTE the content is just added staticly
// If there is a custom RTE the content is just added statically
// inside 'content'
if (rte?.customRte && !rte.customRte.parseContent) {
comps.length &&
Expand Down

0 comments on commit c11f5cc

Please sign in to comment.