Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinymce.4.2.7.min.js Uncaught TypeError: Cannot read property 'body' … #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ramratangupta
Copy link

issue was in componentDidMount, init was called with one parameter.

I am using react-tinymce 0.2.3 and tinymce 4.2.7. as per below code in handleEditorChange, after call of e.target.getContent() I am getting error

tinymce.4.2.7.min.js:10 Uncaught TypeError: Cannot read property 'body' of null
I tried to put e.target.getContent() in jQuery's ready function but no success.

I am using react 0.13.3.

http://stackoverflow.com/questions/38613095/tinymce-4-2-7-min-js-uncaught-typeerror-cannot-read-property-body-of-null

…of null

I am using react-tinymce 0.2.3 and tinymce 4.2.7. as per below code in handleEditorChange, after call of e.target.getContent() I am getting error

tinymce.4.2.7.min.js:10 Uncaught TypeError: Cannot read property 'body' of null
I tried to put e.target.getContent() in jQuery's ready function but no success.

I am using react 0.13.3.

<TinyMCE config={...} content={html} onBlur={this.handleEditorChange} />
http://stackoverflow.com/questions/38613095/tinymce-4-2-7-min-js-uncaught-typeerror-cannot-read-property-body-of-null
@abhirathore2006
Copy link

i faced the same error, but i was in bit hurry so forked it and published after making necessary changes, check https://www.npmjs.com/package/react-tinymce-editor and let me know if it helps you. Also don't forget to read Note section of new Readme file and changelog

Copy link

@TuningGuide TuningGuide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to put the cloning of content into the init function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants