简体   繁体   English

如何编辑默认的 jWYSIWYG 标签 CSS?

[英]How to edit default jWYSIWYG tag CSS?

Here's a nice, boring list:这是一个不错的,无聊的列表:

  1. jWYSIWYG generates HTML tags jWYSIWYG 生成 HTML 标签
  2. Where does it get these default values from它从哪里获得这些默认值
  3. Can they be edited可以编辑吗

UPDATE更新

With no means to edit the default values (short of creating a new custom button from scratch), the only way I found to circumvent default jWYSIWYG behaviors was in the stylesheet.由于无法编辑默认值(无法从头开始创建新的自定义按钮),我发现绕过默认 jWYSIWYG 行为的唯一方法是在样式表中。 This means that while the tag attributes remain, the styles can be overridden.这意味着在保留标记属性的同时,可以覆盖样式。 Annoying but it works.烦人,但它的工作原理。

Hopefully this helps somebody-jWYSIWYG is a handy little plugin.希望这对某人有所帮助-jWYSIWYG 是一个方便的小插件。

You can modify and create new controls with your configuration options, I'd imagine overriding existing controls would be as simple as using the same key (quote in this case).您可以使用配置选项修改和创建新控件,我想覆盖现有控件就像使用相同的键(在这种情况下引用)一样简单。

https://github.com/akzhan/jwysiwyg#available-configuration-options https://github.com/akzhan/jwysiwyg#available-configuration-options

Additionally, custom controls may be specified by adding new keys with the same signature as a control object.此外,可以通过添加与控件对象具有相同签名的新键来指定自定义控件。 For example, if we wish to create a quote control which creates tags, we could do specify this key:例如,如果我们希望创建一个创建标签的引用控件,我们可以指定这个键:

quote: { visible: true, tags: ['blockquote'], css: { class: 'quote', className: 'quote' } 

If you want to get into the nuts and bolts of it you can always edit the source controls file https://github.com/akzhan/jwysiwyg/blob/master/src/controls/default.js - you'll need to follow the build process to rebuild afterwards.如果你想深入了解它的细节,你可以随时编辑源控制文件https://github.com/akzhan/jwysiwyg/blob/master/src/controls/default.js - 你需要遵循之后重建的构建过程。

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

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