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, |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fix and explaination, James. Cheers, |
Beta Was this translation helpful? Give feedback.
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.