You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }