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

更新使其支持通过外部css文件来更改编辑器中的markdown样式 #395

Merged
merged 1 commit into from Mar 5, 2019
Merged

Conversation

clarifysky
Copy link
Contributor

externalLink本意应当是通过载入外部资源来更改markdown的样式和行为吧?但是测试发现不起作用。

查看代码发现,在src/mavon-editor.vue文件中大约307的位置,通过loadExternalLink加载了自定义的markdown_css,但是后面又立马通过$vm.codeStyleChange($vm.codeStyle, true)这样的操作重新加载了通过codeStyle prop传入的样式,使得externalLink中的markdown_css无法生效。

因此做出相应调整,请审查确认。


调整后的编辑器支持通过externalLink传入自定义的markdown样式了,效果如下:

调整后,编辑器支持通过externalLink传入自定义markdown样式

@hinesboy hinesboy merged commit a12e2f5 into hinesboy:master Mar 5, 2019
@hinesboy
Copy link
Owner

hinesboy commented Mar 5, 2019

感谢!

@Seansun1314
Copy link

您好,请问externalLink插槽为什么不写在文档里呢?

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

Successfully merging this pull request may close these issues.

None yet

3 participants