|
|
@@ -6,13 +6,8 @@ export default class TableConfigurer {
|
|
|
|
|
|
configure(md) {
|
|
|
md.renderer.rules.table_open = (tokens, idx) => {
|
|
|
- const beginLine = tokens[idx].map[0] + 1;
|
|
|
- const endLine = tokens[idx].map[1];
|
|
|
- return `<div><button onClick="crowi.launchHandsontableModal('page', ${beginLine}, ${endLine})"><i class="fa fa-table"></i></button><table class="table table-bordered">`;
|
|
|
- };
|
|
|
-
|
|
|
- md.renderer.rules.table_close = (tokens, idx) => {
|
|
|
- return '</table></div>';
|
|
|
+ return '<table class="table table-bordered">';
|
|
|
};
|
|
|
}
|
|
|
+
|
|
|
}
|