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

导出功能 #325

Closed
3 tasks done
88250 opened this issue Apr 18, 2020 · 4 comments
Closed
3 tasks done

导出功能 #325

88250 opened this issue Apr 18, 2020 · 4 comments
Assignees
Milestone

Comments

@88250
Copy link
Collaborator

88250 commented Apr 18, 2020

  • PDF
  • HTML
  • Markdown
@88250 88250 added this to the 3.1.0 milestone Apr 18, 2020
@Vanessa219 Vanessa219 pinned this issue Apr 18, 2020
@Vanessa219 Vanessa219 changed the title 支持复制粘贴到微信公众号 导出功能 Apr 23, 2020
Vanessa219 added a commit that referenced this issue Apr 26, 2020
Vanessa219 added a commit that referenced this issue Apr 26, 2020
Vanessa219 added a commit that referenced this issue Apr 26, 2020
@jakekwak
Copy link
Contributor

@88250 I think html means HTML+CSS

@Vanessa219
Copy link
Owner

yes, and js

@jakekwak
Copy link
Contributor

markdown text

# test

\```html
<textarea>
	<div>test</div>
</textarea>
\```

**test** *test* `test` ~~test~~

I was expecting the below.

<link rel="stylesheet" href="./dist/custom_theme.css"/>
<div id="previewWrap">
  <div id="preview" class="preview vditor-reset vditor-reset--anchor"><h1 id="test"><a id="vditorAnchor-test" class="vditor-anchor" href="#test"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>test</h1>
<pre><div class="vditor-copy"><span aria-label="复制" onmouseover="this.setAttribute('aria-label', '复制')" class="vditor-tooltipped vditor-tooltipped__w" onclick="this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '已复制')"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32px" height="32px"> <path d="M28.681 11.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-11.5c-1.379 0-2.5 1.121-2.5 2.5v23c0 1.378 1.121 2.5 2.5 2.5h19c1.378 0 2.5-1.122 2.5-2.5v-15.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 9.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268v0zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-19c-0.271 0-0.5-0.229-0.5-0.5v-23c0-0.271 0.229-0.5 0.5-0.5 0 0 11.499-0 11.5 0v7c0 0.552 0.448 1 1 1h7v15.5zM18.841 1.319c-1.612-1.182-2.393-1.319-2.841-1.319h-11.5c-1.378 0-2.5 1.121-2.5 2.5v23c0 1.207 0.86 2.217 2 2.45v-25.45c0-0.271 0.229-0.5 0.5-0.5h15.215c-0.301-0.248-0.595-0.477-0.873-0.681z"></path> </svg></span></div><code class="language-html hljs xml" style="max-height: 777px;"><span class="hljs-tag">&lt;<span class="hljs-name">textarea</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>test<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">textarea</span>&gt;</span>
</code></pre>
<p><strong>test</strong> <em>test</em> <code>test</code> <del>test</del></p>
</div>
</div>

Vanessa219 added a commit that referenced this issue Apr 29, 2020
@Vanessa219
Copy link
Owner

we can not export html for chart, abc and so on render.
now, we export html and render method.

@Vanessa219 Vanessa219 unpinned this issue Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants