GithubHelp home page GithubHelp logo

Comments (7)

doxiaodong avatar doxiaodong commented on June 1, 2024 2

sorry

<simplemde [(ngModel)]="x" [options]="{ autosave: { enabled: true, uniqueId: 1 } }"></simplemde>
<simplemde [(ngModel)]="y" [options]="{ autosave: { enabled: true, uniqueId: 2 } }"></simplemde>

from ng2-simplemde.

doxiaodong avatar doxiaodong commented on June 1, 2024 1

~

from ng2-simplemde.

doxiaodong avatar doxiaodong commented on June 1, 2024

SimpleMDE: You must set a uniqueId to use the autosave feature

https://github.com/sparksuite/simplemde-markdown-editor#configuration

from ng2-simplemde.

Stoffel-KT avatar Stoffel-KT commented on June 1, 2024

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.

Stoffel-KT avatar Stoffel-KT commented on June 1, 2024

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.

Stoffel-KT avatar Stoffel-KT commented on June 1, 2024

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.

Stoffel-KT avatar Stoffel-KT commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.