Provide option to switch search UI Type

Created on 19 August 2024, 3 months ago
Updated 4 September 2024, 3 months ago

Problem/Motivation

Currently the find and replace widget rendering window in dialog mode by default.
I can not see their option to switch the UI type to drop down

.create( document.querySelector( '#editor' ), {
findAndReplace: {
uiType: 'dropdown'
}
} )

https://ckeditor.com/docs/ckeditor5/latest/features/find-and-replace.htm...

With dialog option we are facing issue when there 2 CKEditor instance on the same page.

Need to work on solution to provide backend configuration option to switch between dialog or dropdown

🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇮🇳India vipul tulse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @vipul tulse
  • First commit to issue fork.
  • Merge request !12102 - find and replace ui type selector → (Merged) created by dolszewski
  • Status changed to Needs review 3 months ago
  • 🇵🇱Poland dolszewski

    Hello @vipul-tulse

    I have added MR, which adds the possibility of choosing UI type to find and replace. It is available in text format edit form.

    Also, can you provide more information on what issue you are facing when two or more editors are present on one page? I have checked find and replace with multiple editors on one page and everything was working fine.

  • 🇮🇳India vipul tulse

    Please check video

  • 🇵🇱Poland dolszewski

    @vipul-tulse

    Find and replace will not work in that way as shown in the video. The find and replace modal is linked to the editor where it was triggered. In case the video is linked to the editor from tab1, you have to click the toolbar icon on the editor in tab2 to use it in the second editor.

  • 🇵🇱Poland salmonek

    @vipul-tulse

    The option to change UI type for Find and Replace has been released in 1.2.2 The option is available withtin text format settings.
    Now with dropdown option active the F&R dialog will be autmatically closed when switching tabs, which will help to avoid confusion.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024