Comments (3)
doh... I just realised doing either of the above makes it very difficult to actually edit the WYSIWYG box as it keeps reloading every time you type... hmm back to the drawing board..
from ember-cli-summernote.
so in the end I removed all of the above and instead, at the point where I change the model I added a line:
Ember.$('.note-editable').html(model.get('bodyHTML')) ;
which isn't ideal as the model and wysiwyg content are 'out of sync' (or at least disconnected) but does the job in practical terms.
from ember-cli-summernote.
Thank you for being patient. As of version 1.1.0
, I finally resolved this by following DDAU
pattern. Now you can use content
property as readonly and use onContentChange
action for updated contents.
from ember-cli-summernote.
Related Issues (20)
- Help implementing ember-cli-summernote add-on in existing app HOT 5
- Uncaught Error: Assertion Failed: tooltip has to exist on Ember.$.fn.tooltip HOT 5
- Add `tmp` dir to the .npmignore. HOT 1
- Problems re-rendering HOT 3
- demo not working HOT 1
- does not provide summernote callback functionality HOT 3
- Typing in the editor causes a console log to log the content
- When the component is destroyed it logs in the console
- lang support HOT 3
- Problems when shown in a modal. HOT 2
- Attempting to import font files from summernote dist directory that doesn't exist HOT 4
- Fastboot Support HOT 1
- Bootstrap 4 support HOT 2
- better directions HOT 2
- Having two editors in a page is not working HOT 2
- onImageUpload callback arguments is not right HOT 2
- moving from bower to npm HOT 2
- Crashes other styles with 1.5.1 HOT 2
- not initialized
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-summernote.