简体   繁体   English

如何修复TinyMCE的样式?

[英]How can I fix the styles for TinyMCE?

I recently installed TinyMCE (version 4.8.3) into a project I've been working on. 我最近将TinyMCE(版本4.8.3)安装到了我一直在从事的项目中。 Ever since I got it to show up, the styles are not right. 自从我展示它以来,样式是不正确的。 They don't look like any theme I've seen on the website. 它们看起来不像我在网站上看到的任何主题。

在此处输入图片说明

I've tried changing the default theme. 我尝试更改默认主题。 I've looked to see if our styles are interfering, but all the styles affecting the buttons are prefixed with mce, so I don't think so. 我一直在查看我们的样式是否受到干扰,但是所有影响按钮的样式都以mce作为前缀,因此我不这么认为。

I've searched google, and I have not been able to find anything describing this. 我搜索过Google,但找不到任何描述此内容的信息。

Here is my code: 这是我的代码:

tinyMCE.init({
      selector: "textarea[name=note]",
      themes: "modern",
      theme_url: '/vendors/tinymce/themes/modern/theme.min.js',
      // base: '/vendors/test/tinymce',
      plugins: "lists textcolor link advlist code autoresize amsButtons",
      menubar: "",
      toolbar1: "fontselect fontsizeselect styleselect forecolor backcolor | bold italic underline | bullist numlist link code | amsAtMention amsSubscribe",
    });

I've tried many different configurations of the above code. 我已经尝试了上述代码的许多不同配置。

Any suggestions? 有什么建议么? Thank you! 谢谢!

It was conflicting styles in our application. 在我们的应用程序中这是冲突的样式。 I missed them the first time I checked. 我第一次检查时想念他们。 Problem solved. 问题解决了。 Thanks! 谢谢!

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

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