Comments (2)
Thanks for raising this issue.
We are actually shipping the distribution code as part of our packages. If you are not familiar with npm you can pull them down directly from unpkg.com
. See the following example linking to the distribution assets hosted in unpkg.com
:
<!--include Stacks -->
<link rel="stylesheet" href="//unpkg.com/@stackoverflow/stacks/dist/css/stacks.css" />
<!-- include the bundled styles -->
<link
rel="stylesheet"
href="//unpkg.com/@stackoverflow/stacks-editor/dist/styles.css"
/>
<div id="editor-container"></div>
<!-- highlight.js is not included in the bundle, so include it as well if you want it -->
<script src="//unpkg.com/@highlightjs/cdn-assets@latest/highlight.min.js"></script>
<!--include Stacks -->
<script src="//unpkg.com/@stackoverflow/stacks/dist/stacks.min.js"></script>
<!-- include the bundle -->
<script src="//unpkg.com/@stackoverflow/stacks-editor/dist/app.bundle.js"></script>
<!-- initialize the editor -->
<script>
new window.stacksEditor.StacksEditor(
document.querySelector("#editor-container"),
"*Your* **markdown** here",
{}
);
</script>
Closing this issue.
from stacks-editor.
Thank you for pointing me to the unpkg. and the JS and CSS files that include stylesheet and packaged Javascript for entire stackoverflow website. I am interested in just the editor code.
from stacks-editor.
Related Issues (20)
- Hyperlinks with '_' at the start or end of a path segment turn into '\_'
- Double the expected thumbnails showing on image pasting HOT 2
- Code block within spoiler gives different result than shown in preview HOT 2
- v0.8 remove default renderer, Could you some one give me a sample with mathjax3 HOT 1
- docx4J with grails groovy. Good evening team, I have a problem. when I want to recover my content controls from my docx file it corrupts my output file. I really need help. Thanks in advance HOT 1
- Add the ability to remove references to Meta tags in the menu bar
- Support non-focusable disabled state.
- Cannot use a `|` character in table header
- bug(markdown) Code blocks surrounded by single backtick then triple backticks
- Inline code marks allow other marks applied to their content
- bug (markdown with preview) [meta-tag:tag-name] is rendered as plaintext in preview HOT 2
- Escaping '#' inside bullet lists doesn't round-trip
- Don't apply formatting in the raw Markdown editor when Markdown preview is enabled HOT 6
- Css isolation help angular HOT 1
- Markdown Mode: Support using Shift + Enter to add newline
- Try to embed image in HOT 3
- Reporting a vulnerability
- Editor menu dropdowns are missing a11y role attributes HOT 1
- Math formulas support HOT 1
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 stacks-editor.