您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

remove-table-styles.js 491B

1234567891011121314151617181920
  1. import {Transform} from "./transform";
  2. import $ from "jquery";
  3. export class RemoveTableStylesTransform extends Transform {
  4. constructor(param){
  5. super(param);
  6. this.object = param.object;
  7. this.class = this.object.attributes.class.value;
  8. }
  9. execute(){
  10. $(this.object).removeClass();
  11. //$(this.object).removeAttr( 'style' );
  12. }
  13. rolback(){
  14. $(this.object).addClass(this.class);
  15. //$(this.object).addAttr( 'style' );
  16. }
  17. }