mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
17 lines
445 B
JavaScript
17 lines
445 B
JavaScript
/* global */
|
|
|
|
(function () {
|
|
const rtf = $('.rtf-view').toArray();
|
|
for (let i = 0; i < rtf.length; i += 1) {
|
|
const container = $(rtf[i]).find('table').toArray();
|
|
|
|
for (let j = 0; j < container.length; j += 1) {
|
|
const table = $(container[j]);
|
|
if ($(table).parent().hasClass('table-wrapper')) return;
|
|
|
|
$(table).wrap(`
|
|
<div class="table-wrapper w-full" style="overflow: auto;"></div>
|
|
`);
|
|
}
|
|
}
|
|
}());
|