Comments (6)
Actually I tried the webpack guideline.
...
import "froala-editor/js/froala_editor.pkgd.min.js";
import { FroalaEditorModule, FroalaViewModule } from 'angular2-froala-wysiwyg';
...@NgModule({
imports: [
CommonModule,
HttpModule,
TransferHttpModule,
FroalaEditorModule.forRoot(),
FroalaViewModule.forRoot(),
RouterModule.forRoot([
{ path: '', component: HomeView, pathMatch: 'full'},
{ path: 'lazy', loadChildren: './+lazy/lazy.module#LazyModule'}
])
],
declarations: [ AppComponent, HomeView ],
exports: [ AppComponent ]
})
and the error occurs:
WEBPACK_AMD_DEFINE_RESULT !== undefined && (module.exports = WEBPACK_AMD_DEFINE_RESULT)):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){var b=function(c,d){this.id=++a.FE.ID,this.opts=a.extend(!0,{},a.extend({},b.DEFAULTS,"object"==typeof d&&d));var e=JSON.stringify(this.opts);a.FE.OPTS_MAPPING[e]=a.FE.OPTS_MAPPING[e]||this.id,this.sid=a.FE.OPTS_MAPPING[e],a.FE.SHARED[this.sid]=a.FE.SHARED[this.sid]||{},this.shared=a.FE.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=a(c),this.$oel.data("froala.editor",this),this.o_doc=c.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;var f=a(this.o_win).scrollTop();this.$oel.on("froala.doInit",a.proxy(function(){this.$oel.off("froala.doInit"),this.doc=this.$el.get(0).ownerDocument,th
TypeError: Cannot set property 'froalaEditor' of undefined
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:123122:5421)
at d.id (/home/alfred/workspace/ng-universal-demo/dist/server.js:123121:37)
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:123122:283)
at webpack_require (/home/alfred/workspace/ng-universal-demo/dist/server.js:26:30)
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:86774:101)
at webpack_require (/home/alfred/workspace/ng-universal-demo/dist/server.js:26:30)
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:49842:70)
at webpack_require (/home/alfred/workspace/ng-universal-demo/dist/server.js:26:30)
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:86875:81)
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:86927:30)
at webpack_require (/home/alfred/workspace/ng-universal-demo/dist/server.js:26:30)
at /home/alfred/workspace/ng-universal-demo/dist/server.js:94:18
at Object. (/home/alfred/workspace/ng-universal-demo/dist/server.js:97:10)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
from angular-froala-wysiwyg.
@alfredalfie, Have you solved the above proble..? If yes please let me know how to overcome this error.
from angular-froala-wysiwyg.
It looks you are using webpack, so please follow the steps for webpack integration: https://github.com/froala/angular2-froala-wysiwyg#use-with-webpack.
from angular-froala-wysiwyg.
@gouthamsaie I believe you should change the import for the editor to:
import * as FroalaEditor from 'froala-editor/js/froala_editor.pkgd.min';
from angular-froala-wysiwyg.
Yes @alfredalfie ... did you fixed this problem ? If yes, how did you do that ?
from angular-froala-wysiwyg.
@gouthamsaie Thanks for suggestion, but its not working for me.
Can you please tell me the full syntax.
thanks in advance.
from angular-froala-wysiwyg.
Related Issues (20)
- Links are not opening/clickable when editor.edit is in off mode HOT 1
- Error When copy and pasted the content in floara editor
- Support for Angular 16 and Ivy HOT 21
- Link edit pop up does not show up with Bootstrap modal HOT 1
- Cannot read properties of undefined error when "clearFormatting" is clicked
- Installation with Angular CLI, not all toolbar items visible HOT 1
- Unexpected value 'FroalaEditorModule' imported by the module 'AppModule'. Please add an @NgModule annotation.
- msal issue in Angular 16 HOT 1
- Whitespace is not rerndered in the editor under certain condition
- v4.1.0 Not working for most options HOT 7
- Editor disappears, reproducable
- onkeyup event expecting incorrect type
- Warning at build time about commonJS
- Create License File HOT 2
- Cannot understand licensing
- Build warnings under Angular 17
- Froala showing 'Something went wrong!' went upload is successful.
- Disabled Reactive Form is not working
- Page break functionality is not available in froala with Angular 17 implementation
- Replacing an image with a caption takes you to the beginning of the page (unpredictable scrolling)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-froala-wysiwyg.