Skip to content

Commit

Permalink
fix: husky errors
Browse files Browse the repository at this point in the history
  • Loading branch information
imnapo committed Oct 2, 2021
1 parent d2cb4ef commit 59873dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/editor/quill-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class QuillEditor extends React.Component<
customFonts = [],
customStyles = [],
defaultFontFamily = undefined,
customJS=''
customJS = '',
} = this.props;

return createHtml({
Expand All @@ -130,7 +130,7 @@ export default class QuillEditor extends React.Component<
backgroundColor: theme.background,
placeholderColor: theme.placeholder,
customStyles,
customJS
customJS,
});
};

Expand Down
4 changes: 2 additions & 2 deletions src/utils/editor-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Inital_Args = {
placeholderColor: 'rgba(0,0,0,0.6)',
customStyles: [],
fonts: [],
customJS:''
customJS: '',
} as CreateHtmlArgs;

export const createHtml = (args: CreateHtmlArgs = Inital_Args) => {
Expand Down Expand Up @@ -91,7 +91,7 @@ export const createHtml = (args: CreateHtmlArgs = Inital_Args) => {
args.placeholder,
args.theme,
args.fonts.map((f) => getFontName(f.name)),
args.customJS
args.customJS ? args.customJS : ''
)}
${editor_js}
</body>
Expand Down

0 comments on commit 59873dd

Please sign in to comment.