height as a variable doesn't work #378
|
I'm using tinymce in a Next js function component, and I'm sending it three props. The props for height doesn't has no effect and gives me an error in the console: Invalid value passed for the height option. My code: <Editor Thanks, |
Replies: 2 comments
|
When you say: <Editor
init={{
// ... removed lines
height: { height },
// ... removed lines
}}
/>You are assigning an object containing the property height instead of a number. You need to remove the brackets around it because you are already in a Javascript context. |
|
Thanks for the fix and explaination, James. Cheers, |
When you say:
You are assigning an object containing the property height instead of a number. You need to remove the brackets around it because you are already in a Javascript context.