Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

jodit-table-border-adjuster

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jodit-table-border-adjuster

This plugin allows to adjust the border of a table and cells in the Jodit WYSIWYG editor

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

jodit-table-border-adjuster

NPM Version

This plugin allows to adjust the border of a table and cells in the Jodit WYSIWYG editor

See Demo at https://mu-hun.github.io/jodit-table-border-adjuster/

Usage

import Jodit from "jodit";
import TableBorderAdjuster from "jodit-table-border-adjuster";

Jodit.plugins.add("table-border-adjuster", TableBorderAdjuster);

// Initialize Jodit editor
const editor = Jodit.make("#editor");

Import CSS for Border Styles

To apply default border styles to tables and cells, import the plugin’s bundled CSS file:

import "jodit-table-border-adjuster/table-border-adjuster.css";

Note: This file contains precompiled styles. For custom styling, you can import and modify the original SCSS source directly in your build process:
src/table-border-adjuster.scss

How to Adjusting Borders

  • Select a Table or Cells: Click inside a table in the Jodit editor. You can adjust borders for the entire table or for selected cells.
  • Open the Popup:
    • When a table or cells within a table are selected, a toolbar button (often within the table context popup) with the tooltip "Set Thickness" (or your localized version) will become active.
    • Click this button to open the border adjustment popup.
  • Adjust Borders in the Popup:
    • Table Outline: The popup provides dropdown menus to set the thickness for the Top, Bottom, Left, and Right borders of the entire table.
    • Selected Cells: There is also a dropdown menu to set the border thickness for all currently Selected Cells.
    • Thickness Options: For each dropdown, you can choose from the following border thicknesses:
      • None
      • Normal
      • Medium
      • Thick
      • Extra Thick
      • Reset (This will remove the specific border attribute)
  • Apply Changes: Selecting an option from the dropdown will immediately apply the corresponding style to the table or cells.

Localization

This plugin supports localization for the UI elements it introduces.

English en and Korean ko are supported by default. The plugin will automatically use the language set in your Jodit editor configuration if it's one of these.

Customize

You can customize localization to modify Jodit.lang object.

import Jodit from "jodit";
import TableBorderAdjuster from "jodit-table-border-adjuster";
import "jodit-table-border-adjuster/dist/table-border-adjuster.css";

Jodit.lang.en = {
  ...Jodit.lang.en, // Preserve existing localization if any
  tableBorderAdjusterTitle: "Set Thickness",
  tableBorderAdjusterPlaceholder: "Select thickness",
  tableBorderAdjusterTop: "Top",
  tableBorderAdjusterBottom: "Bottom",
  tableBorderAdjusterLeft: "Left",
  tableBorderAdjusterRight: "Right",
  tableBorderAdjusterSelectedCells: "Selected Cells",
  tableBorderAdjusterReset: "Reset",
  tableBorderAdjusterNone: "None",
  tableBorderAdjusterNormal: "Normal",
  tableBorderAdjusterMedium: "Medium",
  tableBorderAdjusterThick: "Thick",
  tableBorderAdjusterExtraThick: "Extra Thick",
};

Jodit.plugins.add("table-border-adjuster", TableBorderAdjuster);

// Initialize Jodit editor (ensure Jodit's language is set to 'en')
const editor = Jodit.make("#editor", {
  language: "en",
});

Keywords

jodit

FAQs

Package last updated on 09 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts