Search inside editor

Search plugin. it is used for custom search in text search

Disable plugin:

Jodit.make('#editor', {
useSearch: false
});

or

Jodit.make('#editor', {
disablePlugins: 'search'
});

JS API

Find and select some text

const editor = Jodit.make('#editor');
editor.value = '<p>this text contains some text</p>';
editor.e.fire('search', 'some text').then(() => {
console.log('Selected!');
})

Find next fragment

const editor = Jodit.make('#editor');
editor.value = '<p>this text thow times contains some text and some text</p>';
editor.e.fire('searchNext', 'some text').then(() => {
console.log('Selected!');
editor.e.fire('searchNext', 'some text');
})

References

Re-exports SentenceFinder
Re-exports State
Re-exports clearSelectionWrappers
Re-exports clearSelectionWrappersFromHTML
Re-exports getSelectionWrappers
Re-exports isSelectionWrapper
Re-exports wrapRangesTextsInTmpSpan

Jodit PRO

If you like Jodit - try Jodit PRO