Comments (4)
you could use a data attribute data-suffix="{{suffix}}"
or just class="mw-editor mw-{{suffix}}"
from ng-markdown.
Be able to get the good css and the link with the other elements only with one class was cool to me, but seems a little tricky after when we have to change the stylish.
Will go for a general class to apply the css, but I'm not sure with the suffix attribute, that was okay since it was also used to suffix the class, but now I don't think it's really appropriate.
from ng-markdown.
Would be nice if there was an easier way to override the css background color - on a white background page the dark background markdown control is less than ideal.
I'm using the following to override the colors, but would be interested in a cleaner implementation.
Any thoughts?
/* override ng-markdown background colors */
[class^="wmd-input"], [class*=" wmd-input"] {
background: white;
}
[class^="wmd-prompt-dialog"], [class*=" wmd-prompt-dialog"] {
background-color: white;
}
from ng-markdown.
Yep, that's not very clean when you want to override every editor, I give you that.
I thing we will keep the current usage to target the editors, previews and bars but add some global classes like wmd-preview
, wmd-input
; and maybe some pre-configured themes would be great too
from ng-markdown.
Related Issues (20)
- Ability to disable the elastic textarea
- Add highlight to generated code
- Model not refreshed just after icon is used
- can we parse bullet points into markdown automatically? HOT 5
- Fix broken Unit Tests
- use gulp-ng-annotate instead of gulp-ng-min
- Readonly view? HOT 9
- Thanks for the plugin HOT 1
- Mobile dialogs need help HOT 1
- Setting the model appears to break the render HOT 4
- markdown not fully supported in previewer HOT 1
- tried upgrading from 2.0.0 and i get an error HOT 1
- Is there a way to access showdown to add extensions? HOT 2
- Looking for new maintener/owner HOT 3
- license?
- avoid using inline styles HOT 5
- using editor twice on same page causes problems. HOT 6
- Creating e2e tests
- provide unminified versions in ./dist for bower package HOT 10
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 ng-markdown.