Browse Source

Transformation Remove table styles

master
Igor_Budimski 4 years ago
parent
commit
7ed9933497
2 changed files with 1 additions and 20 deletions
  1. 0
    20
      src/transformations/remove-table-style.js
  2. 1
    0
      src/transforms-factory.js

+ 0
- 20
src/transformations/remove-table-style.js View File

@@ -1,20 +0,0 @@
import {Transform} from "./transform";
import $ from "jquery";

export class RemoveTableStylesTransform extends Transform {
constructor(object){
super();
this.object = object;
this.class = this.object.className;
}

execute(){
$(this.object).removeClass();
//$(this.object).removeAttr( 'style' );
}

rolback(){
$(this.object).addClass(this.class);
//$(this.object).addAttr( 'style' );
}
}

+ 1
- 0
src/transforms-factory.js View File

@@ -7,6 +7,7 @@ import { ShowNumberRowsTransformation } from "./transformations/show-number-rows
import { BorderColorTransform } from "./transformations/border-color-transformation/border-color-transformation";
import { RemoveTableHeaderTransform } from "./transformations/remove-table-header-transform";
import { RemoveTableStylesTransform } from "./transformations/remove-table-styles";

export class TransformsFactory{
produce(code,object,selectors)
{

Loading…
Cancel
Save