Comments (7)
sorry
<simplemde [(ngModel)]="x" [options]="{ autosave: { enabled: true, uniqueId: 1 } }"></simplemde>
<simplemde [(ngModel)]="y" [options]="{ autosave: { enabled: true, uniqueId: 2 } }"></simplemde>
from ng2-simplemde.
~
from ng2-simplemde.
SimpleMDE: You must set a uniqueId to use the autosave feature
https://github.com/sparksuite/simplemde-markdown-editor#configuration
from ng2-simplemde.
Thx,
forgot about that apparantely.
I can do it for one editor but still trying to figure out how to set multiple unique id's in the configuration.
from ng2-simplemde.
wow, thx for your quick reply!
That's exactly what I've been trying from the beginning (even without forgetting about the id ;) ),
but when I do it like this the editor brakes and I get a standard textarea, so I guess I'm doing something else wrong somewhere or I've got something else installed that is braking it.
I'm getting an error: Error: config is not an object
from ng2-simplemde.
I had tried that as well :)
the editor looks normal again but the autosave is only working on the first one, not on the second editor in the same component. :)
from ng2-simplemde.
apparently for my application I don't need the autosave function from the editor but need to create a custom autosave function to save a full draft of the form a user is filling in :)
from ng2-simplemde.
Related Issues (20)
- Component error when using as angular form control HOT 9
- Cannot find name '$options1' HOT 2
- Importing Module in Angular 4.4.3 results in an error HOT 2
- ng2-simplemde not working with Angular 5 HOT 3
- simplemde.min.css not getting injected in Angular 5.1 HOT 7
- Documentation Unclear on Usage HOT 1
- Rendering for show page HOT 2
- how to implement HOT 5
- frozen with ionic HOT 8
- Angular 6 Compat HOT 2
- doesn't work with Angular Universal HOT 1
- <a> with target="_blank"
- How to show line numbers HOT 8
- Added non-passive event listener to a scroll-blocking <some> event HOT 2
- How to toggle toolbar or update the component with modified options HOT 3
- Readonly mode
- Warning: Entry point 'ng2-simplemde' contains deep imports HOT 1
- Error: SimplemdeModule.forRoot returns a ModuleWithProviders type without a generic type argument. HOT 1
- moderate severity vulnerability
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 ng2-simplemde.