• 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.823
  • Jodit PRO v.4.6.9
  • 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

Google Search Plugin

A Jodit plugin that adds a Google search button to the toolbar. This plugin allows users to quickly search for selected text or the current paragraph in Google.

Features

  • Adds a "Google search" button to the Jodit toolbar
  • Searches for selected text or the current paragraph if no text is selected
  • Opens search results in a new browser tab
  • Automatically disables the button when the editor is empty

Installation

Add "google-search" to your Jodit's extraPlugins configuration:

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'] });
Copy

Usage

  1. Select text in the editor or place the cursor within a paragraph
  2. Click the "Google search" button in the toolbar
  3. A new browser tab will open with Google search results for the selected text or paragraph

Configuration

The plugin adds a button to the toolbar in the "search" group. You can customize the toolbar to include this button:

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'], buttons: ['bold', 'italic', 'google'] });
Copy

You can also customize the button's position by defining a custom toolbar:

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'], toolbar: { items: [ 'source', '|', 'bold', 'italic', '|', 'google', '|', 'ul', 'ol', '|', 'font', 'fontsize', 'brush', 'paragraph' ] } });
Copy

Programmatic Usage

You can trigger the Google search functionality programmatically using the startSearch command:

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'] }); // Trigger Google search for the selected text or current paragraph editor.execCommand('startSearch');
Copy

Examples

Basic Usage

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'], buttons: ['bold', 'italic', 'google'] });
Copy

Custom Button Position

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'], toolbar: { items: [ 'source', '|', 'bold', 'italic', '|', 'ul', 'ol', '|', 'font', 'fontsize', 'brush', 'paragraph', '|', 'google' ] } });
Copy

Adding a Custom Search Button

const editor = Jodit.make('#editor', { extraPlugins: ['google-search'] }); // Create a custom button outside the editor const searchButton = document.createElement('button'); searchButton.textContent = 'Search in Google'; document.body.appendChild(searchButton); // Add event listener to trigger Google search searchButton.addEventListener('click', () => { editor.execCommand('startSearch'); });
Copy

How It Works

The plugin registers a command called startSearch that performs the following actions:

  1. If text is selected in the editor, it uses the selected text as the search query
  2. If no text is selected, it uses the text of the current paragraph as the search query
  3. It opens a new browser tab with Google search results for the query

The button is automatically disabled when the editor is empty, ensuring that users can only perform searches when there is content to search for.

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