如何向Wordpress wp_editor textarea字段添加自定义属性?
在官方文档中,没有办法做到这一点.我需要将客户端验证属性(data-bvalidator ="required")添加到由WordPress 的wp_editor方法生成的文本区域.
有什么建议 ?
如何在 angular 2 组件打字稿文件中添加类属性?
下面是我的页脚组件代码,我想向它添加页脚类。
页脚.component.ts
import { Component } from '@angular/core';
import { Footer } from './footer';
@Component({
moduleId: module.id,
selector: 'footer',
templateUrl: 'footer.component.html'
})
export class FooterComponent {
constructor() {
this.title = 'Footer Content';
this.css_class = 'navbar-fixed-bottom';
}
}
Run Code Online (Sandbox Code Playgroud)
页脚.ts
export class Footer {
constructor(
public title: string
) { }
}
Run Code Online (Sandbox Code Playgroud)
请建议。