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

Problem with editor #4

Open
stormcleric opened this issue Jan 9, 2017 · 0 comments
Open

Problem with editor #4

stormcleric opened this issue Jan 9, 2017 · 0 comments

Comments

@stormcleric
Copy link

Hi there,

I'm trying to run Kendo Editor on React using the sample that appears on NPM.

I'm using webpack.

This is my component:

`var KendoEditor = require('kendo-ui-react-jquery-editor').default;

//Don't forget CSS, webpack used to include CSS
require('../../../Content/Telerik/kendo.common.min.css');
require('../../../Content/Telerik/kendo.default.min.css');
require('../../../Scripts/Telerik/kendo.editor.js');

var Example = React.createClass({
render: function() {
return (
<KendoEditor options={{height: 550,sortable: true}}>

      </KendoEditor>
  );

}
});

module.exports = Example;`

This is my view

@Html.React("Client.Example", new { }, clientOnly: true)

And I'm already bundling kendo.editor.js and kendo.all.js.

The error that appears is:

Uncaught TypeError: Cannot read property 'Editor' of undefined

On this line:

//note I am not using jQuery plugin to instantiate, don't want to wait for namespace on $.fn this.widgetInstance=new _kendoEditor2['default'].ui.Editor(elementNode,this.props.options);//if props are avaliable for events, triggers, unbind events, or methods make it happen now

Can you please help? Thanks in advance.

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

No branches or pull requests

1 participant