简体   繁体   English

Ace编辑器内部生成CSS样式 <head> 标签

[英]Ace Editor generates CSS styles inside <head> tag

I found that when you are using Ace Editor ( https://ace.c9.io/ or react-ace) inside the app, it generates CSS styles inside tag. 我发现,当您在应用程序内使用Ace编辑器( https://ace.c9.io/或react-ace)时,它会在标签内生成CSS样式。

It generates three tags. 它生成三个标签。 One without id, and two others with 'ace_editor.css' and 'ace-tm' IDs. 一个没有ID,另外两个没有'ace_editor.css'和'ace-tm'ID。

Is there any way to prevent it, and force these styles being generated in another place? 有什么方法可以防止这种情况,并迫使这些样式在另一个地方生成?

款式

There is no way to achieve this without modifying the source code. 不修改源代码就无法实现这一目标。 It is unclear what do you mean by Web Accessibility issues but if it causes problems you should file a bug/feature request on ace issue tracker. 目前尚不清楚Web Accessibility issues是什么意思,但如果它引起问题,则应在ace问题跟踪器上提交错误/功能请求。

I know its very long but am also facing the same issue @Remzes try to reset your window variable ace* and proceed. 我知道它的时间很长,但是也遇到了相同的问题@Remzes尝试重置窗口变量ace *并继续。 you don't want to create a link instead. 您不想创建链接。

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

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