Просмотр исходного кода

Transformation Remove table styles

master
Igor_Budimski 4 лет назад
Родитель
Сommit
7ed9933497
2 измененных файлов: 1 добавлений и 20 удалений
  1. 0
    20
      src/transformations/remove-table-style.js
  2. 1
    0
      src/transforms-factory.js

+ 0
- 20
src/transformations/remove-table-style.js Просмотреть файл

@@ -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 Просмотреть файл

@@ -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)
{

Загрузка…
Отмена
Сохранить