# Problem with openDiolagBox

**URL:** <https://discuss.codemirror.net/t/problem-with-opendiolagbox/7514>\
**Category:** v5\
**Created:** [December 1, 2023, 9:50am UTC](https://discuss.codemirror.net/t/problem-with-opendiolagbox/7514 "2023-12-01T09:50:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganesh](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/g/f19dbf/32.png) [@ganesh](https://discuss.codemirror.net/u/ganesh)\
**Post date:** [December 1, 2023, 9:50am UTC](https://discuss.codemirror.net/t/problem-with-opendiolagbox/7514/1 "2023-12-01T09:50:42Z")

</div>

1.) How to link the openDialogBox and a callback function in Search.js,  
2.) can i customize the dialog box with find and replace input boxes at the same time like this  
 ![image](https://discuss.codemirror.net/uploads/default/original/2X/8/8aef25eb4ccfc9ce28f23ce3dc38821f3bdff5cf.png)  
3.) is there any options to do like that in editor default.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)\
**Post date:** [December 1, 2023, 10:07am UTC](https://discuss.codemirror.net/t/problem-with-opendiolagbox/7514/2 "2023-12-01T10:07:18Z")

</div>

> [@ganesh](#):
>
> 1.) How to link the openDialogBox and a callback function in Search.js,

I don’t know what that means.

> [@ganesh](#):
>
> 2.) can i customize the dialog box with find and replace input boxes at the same time

No.

> [@ganesh](#):
>
> 3.) is there any options to do like that in editor default.

No. But version 6 does work that way.

---

<div class="post-metadata">

**Author:** ![ganesh](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/g/f19dbf/32.png) [@ganesh](https://discuss.codemirror.net/u/ganesh)\
**Post date:** [December 1, 2023, 10:23am UTC](https://discuss.codemirror.net/t/problem-with-opendiolagbox/7514/3 "2023-12-01T10:23:20Z")

</div>

thanks for the reply, I was asking that, is callback function in openDialogbox searches the input value in the editor sting with the help of search.js addon?, or we have to write a search logic for that?
