Comments (9)
Hi,
Ember observer could not observe dynamic keys of object.
Try this example
triggerOptions(){
this.set('tinymceOpts', {});
Ember.run.later(() =>{
this.set('tinymceOpts', {resize: 'both'});
},100)}
}
from ember-cli-tinymce.
This wipes out all my previous settings, and doesn't change the one I need to change. I also get this in my console:
Uncaught TypeError: Cannot read property 'cloneNode' of null
at Object.serialize (tinymce.min.js:5)
at B.getContent (tinymce.min.js:11)
at Class.contentChanged (tinymce-editor.js:30)
at Backburner.run (ember.debug.js:678)
at ember.debug.js:980
from ember-cli-tinymce.
So you can write this code:
triggerOptions(){
let currentOptions = this.get('tinymceOpts');
this.set('tinymceOpts', {});
Ember.run.later(() =>{
currentOptions.resize = false
this.set('tinymceOpts', currentOptions);
},100)}
}
from ember-cli-tinymce.
That works perfectly! Thanks!
from ember-cli-tinymce.
Probably shouldn't have closed. It works, but still getting the cloneNode error
from ember-cli-tinymce.
Ok fix this. Update package to version 0.1.6, Thanks
from ember-cli-tinymce.
OK thanks!
from ember-cli-tinymce.
I am facing a similar issue however while I was going through this thread I was wondering where do I need to place triggerOptions function
from ember-cli-tinymce.
Hi, I am using 0.1.6 version but still I getting,
Uncaught TypeError: Cannot read property 'cloneNode' of null
from ember-cli-tinymce.
Related Issues (17)
- Uncaught TypeError: Cannot read property 'body' of null HOT 1
- Uncaught TypeError: Cannot read property 'cloneNode' of null HOT 2
- Editor does not work in modal HOT 5
- Enable Travis HOT 1
- How do you import language packs into your plugin HOT 1
- The component is broken HOT 1
- Feature Request: load tinymce from assets.. HOT 9
- Question: Setting options HOT 1
- Focus Out HOT 1
- Acceptance testing the editor HOT 4
- Changing a view's elementId after creation is not allowed HOT 1
- I can't get the value of property defined using the form events HOT 1
- Needs option for setting cdn version HOT 1
- Update TinyMCE to version 5 HOT 2
- Uncaught TypeError: Cannot read property 'open' of undefined HOT 9
- TypeError: Cannot read property of 'cloneNode' of null... HOT 7
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 ember-cli-tinymce.