Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to implement #14

Closed
Stoffel-KT opened this issue Dec 26, 2017 · 5 comments
Closed

how to implement #14

Stoffel-KT opened this issue Dec 26, 2017 · 5 comments

Comments

@Stoffel-KT
Copy link

I have been trying to implement this into my angular application for the last 4 days now...
Could you please help me out because I need this but I don't understand how to use it.

I've done the npm install and added it to my app.module.

I need to be able to create more or less the exact same editor screen as in the demo and will also need to extract the value of this area when a user has filled it in.

As far as I understand with this package I should easily be able to implement the full 'window' of this editor or am I completely wrong and should I construct this 'window' myself and this package will help me with a completely different part.

(I only started coding about 8 months ago and oonly a week ago I heard about markdown for the first time since I needed to use it... some things that should be obvious often are not yet obvious to me, sorry ...)

kind regards

@doxiaodong
Copy link
Owner

Can you provide a demo repo on github? I don’t know what blocked you.

@Stoffel-KT
Copy link
Author

Yesterday I changed something and suddenly I could see the toolbar but it's still acting very strange, it's not at all looking like the edit-window in the demo.

I created a new project where I implemented ng2-simplemde in the exact same way. It's looking exactly the same except for the toolbar (in my project the toolbar has got a blue color, I guess this has probably got something to do with my css where I give a-tags a custom color).

I created a github for this test project (it's the first time I've done this so I hope I've done it correct)
github --> Stoffel-KT/simplemde-test

@doxiaodong
Copy link
Owner

I don't see ng2-simplemde any place. https://github.com/Stoffel-KT/simplemde-test/blob/master/package.json

@Stoffel-KT
Copy link
Author

I think I had to commit all the changes I made after I did 'ng new ...'
I thought this wasn't necessary since I did not yet create anything on GitHub for this example.

Now it should be in there.

Thx for taking the time to have a look at what is holding me back by the way!

@doxiaodong
Copy link
Owner

doxiaodong commented Dec 27, 2017

I see, the ngModel is required, like <simplemde [(ngModel)]="value"></simplemde>. And the styles you can get it from #11.

And the demo code is in server dir at this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants