• Jodit
  • PRO
  • Builder
  • Getting Started
  • Playground
  • Examples
  • Documentation
  • Download
  • Overview
  • Issue tracker
  • Docs
  • Plugins
  • Demo
  • Pricing
  • File Browser Pro
  • Sign in
Get connected wth us on social networks!

Footer

Jodit Core

  • Jodit Home page
  • Documentation
  • Playground
  • Examples
  • Github
  • Issues

Integration

  • Jodit React
  • Jodit Angular
  • Jodit Vue
  • Jodit Yii2
  • Jodit Joomla

PRO/OEM plugins

  • AutoComplete
  • Backup Plugin
  • Button Generator
  • Change case
  • Custom Color Picker
  • Emoji
  • Finder
  • Google Search
  • Paste code
  • Show Blocks
  • Virtual Keyboard
  • Tune block
  • Highlight signature
  • Google Maps Editor
  • Export in PDF
  • Page Break
  • Iframe Editor
  • Paste from Word PRO
  • Mobile View
  • ToDo List
  • Translate

Links

  • Demo PRO/OEM
  • Demo FileBrowser PRO
  • Price
  • License
  • Support
  • For resellers

Versions

  • site v.0.1.810
  • Jodit PRO v.4.6.4
  • Jodit v.4.6.2
  • All versions
2025 © Copyright: XDSoft.net <support@xdsoft.net>
  • Getting started

    • Installation
    • Usage
    • Support
    • FAQs
    • Cloud
    • Examples
  • How to

    • Create plugin
    • Add custom button
    • Add custom font in the font list
    • How to create module
    • How to generate license key
    • How to make a backend finder
    • How to set up document view
  • Modes

    • Source mode
  • Customisation

    • Theme
    • Keyboard
  • API

    • License Rest API
    • JS API
  • Changelog

  • Plugins

    • AutoComplete
    • Backup Plugin
    • Button Generator
    • Change case
    • Custom Color Picker
    • Emoji
    • Finder
    • Google Search
    • Paste code
    • Show Blocks
    • Virtual Keyboard
    • Tune block
    • Highlight signature
    • Google Maps Editor
    • Export in PDF
    • Page Break
    • Iframe Editor
    • Paste from Word PRO
    • Mobile View
    • ToDo List
    • Translate

Tune block

Tune block with popup: move, align, change block tag, and another options

Options

Plugin settings allow you to set a set of options for any tag that the user clicks on. This is done through the option tuneBlock.popup

For example, let's set the ability in the editor in the tune block to switch the direction of the text.

Jodit.make('#editor', { tuneBlock: { popup: { p: Jodit.atom(['align', 'tune.up', 'tune.remove', 'tune.down']) } } });
Copy

Tune block has several button options by default, here they are:

  • tune.up - move block up
  • tune.remove - delete block
  • tune.down - move block down
  • tune.h1 - make from block Heading 1
  • tune.h2 - make from block Heading 2
  • tune.h3 - make from block Heading 3
  • tune.h4 - make from block Heading 4
  • tune.h5 - make from block Heading 5
  • tune.h6 - make from block Heading 6

Also you can use any buttons provided by other plugins:

Jodit.make('#editor2', { tuneBlock: { popup: { table: Jodit.atom(['brush', 'image', 'align']) } } });
Copy

And of course you can add your own button, just like this done for the main toolbar

Jodit.make('#editor2', { tuneBlock: { popup: { table: [ { icon: 'brush', name: 'Brush table in red', exec(editor, tableElm) { tableElm.querySelectorAll('td').forEach((td) => { td.style.backgroundColor = 'red'; }); editor.e.fire('afterExecTune.tune'); // close the tuner } } ] } } });
Copy

Disabling a plugin

In order to deactivate a plugin, you can set:

import JoditEditor from 'jodit-react'; <JoditEditor config={{ disablePlugins: ['tune-block'] }} />;
Copy

If you want to deactivate the plugin for any one type of tags, then simply set its value to null.

Jodit.make('#editor3', { tuneBlock: { popup: { h3: null // No tune-block will be shown for H3 tag } } });
Copy

Alternatively, you can disable the plugin for all tags by simply specifying:

Jodit.make('#editor3', { tuneBlock: { popup: Jodit.atom({}) // We erase all default values } });
Copy

Screenshots

Demo

Full demo including Premium Plugins! 

These examples display all of the plugins available with Jodit Editor PRO/OEM version.

Jodit Editor

Framework  plugins Complete  documentation Examples 
Try play