简体   繁体   English

选项文本未在Medium编辑器中显示的问题(来自Github)

[英]Problems with option text not showing in Medium editor (from Github)

As you see in the attachment below, some option buttons are not shown correctly. 如您在下面的附件中看到的,某些选项按钮未正确显示。 Some of the buttons are missing out the text/icon, however they work correctly as they should. 一些按钮缺少文本/图标,但是它们可以正常工作。

在此处输入图片说明

I implemented it inside a web page, not on a blank page. 我在网页内而不是空白页上实现了它。 Can it be CSS interference? 可能是CSS干扰吗?

Suggestions? 有什么建议吗?

The plugin is available here https://github.com/orthes/medium-editor 该插件可在这里https://github.com/orthes/medium-editor

I see, that you downloaded the editor, from my old fork, not from official repo here: https://github.com/daviferreira/medium-editor 我看到的是,您是从我的旧版本而不是从此处的官方仓库下载了该编辑器: https//github.com/daviferreira/medium-editor

Try to download it from there, and see if it helps. 尝试从那里下载它,看看是否有帮助。

As per the latest version of the repo, this should no longer be an issue. 根据最新版本的回购协议,这不再是问题。

If it is still an issue, this can be resolved by running a small node server to serve up the demo page instead of navigating straight to a file-path in your browser. 如果仍然存在问题,可以通过运行小型节点服务器来提供演示页面来解决此问题,而不用直接在浏览器中导航到文件路径。

If you clone the latest version of the repo from github just navigate to the root directory and run the following: 如果您从github克隆最新版本的仓库 ,请导航到根目录并运行以下命令:

npm install
node index.js

npm install will install all the basic dev dependencies, which include connect and serve-static . npm install将安装所有基本的dev依赖项,包括connectserve-static These 2 libraries are used to create a simple static webserver that is invoked when you run index.js . 这两个库用于创建一个简单的静态Web服务器,该服务器在您运行index.js时被调用。

You can the navigate to http://localhost:8088/demo/index.html and you should now be able to access all the demos and the toolbar icons should display properly. 您可以导航到http://localhost:8088/demo/index.html ,现在应该可以访问所有演示,并且工具栏图标应该正确显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM