Skip to content

Commit

Permalink
added process.env log
Browse files Browse the repository at this point in the history
  • Loading branch information
RotateAt60MPH committed Feb 16, 2024
1 parent 9a94706 commit 53e9b60
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/shared/components/TextEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class TextEditor extends React.Component {
}

render() {
console.log(`${JSON.stringify(process.env)}`);

const {
height = 200,
width = 800,
Expand All @@ -26,9 +24,15 @@ class TextEditor extends React.Component {
// editorRef,
} = this.props;

// handle case where tinymce is directly off the root
let url = '/tinymce/tinymce.min.js';
if (process.env.PUBLIC_URL != '/') {
url = `${process.env.PUBLIC_URL}/tinymce/tinymce.min.js`;
}

return (
<Editor
tinymceScriptSrc={process.env.PUBLIC_URL + '/tinymce/tinymce.min.js'}
tinymceScriptSrc={url}
zapiKey={EDITOR_API_KEY}
id={editorId}
xcloudChannel={EDITOR_VERSION}
Expand Down

0 comments on commit 53e9b60

Please sign in to comment.