Comments (1)
After further digging, I found that this is not an issue of the angular plugin but rather of the editor itself, changing the template option in the editor does not take effect until the editor is destroyed and recreated. Below is the code changes I made, but I am hoping there is a better way to accomplish this rather than redrawing the entire component as it is not the most performant solution.
ngOnChanges(changes: SimpleChanges) { const config: SimpleChange = changes.config; if ( !!config && !!config.currentValue && config.previousValue && config.currentValue.theme !== config.previousValue.theme ) { let value = ''; if (!!this.editor.value) value = this.editor.value; this.editor.destruct(); this.editor = new Jodit(this.element, this.config); this.editor.value = value; } }
from jodit-angular.
Related Issues (20)
- Problem with Angular Universal
- Angular 13 support HOT 19
- Get editor upon component init HOT 1
- Unable to install [email protected] in Angular 9 HOT 1
- Jodit-Multi-Pro with Angular 13 HOT 6
- Support Angular 15? Issue with setDisabledState HOT 8
- Is RxJs dependency needed? HOT 1
- OEM license key for premium plugins
- Angular 16 support HOT 5
- Error in popup output HOT 1
- Angular 15 HOT 2
- change default target for all links
- Where to place custom plugin and how do i import it?
- Custom Rendering for Jodit-Angular
- Angular warns about CommonJS or AMD dependency
- Cannot change background-color of jodit-editor HOT 2
- How to init value? HOT 2
- I got an error 'has no selector, please add it!' when run 'ng build --prod' HOT 2
- Upgrade to Angular 12? HOT 5
- Module not found: Error: Can't resolve 'jodit' HOT 2
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 jodit-angular.