Thread:Kangaroopower/@comment-3508190-20120413185323/@comment-3508190-20120420090425

Did you see the code I posted at w:c:kangaroopower:FindReplace_1.js? I think it would make a nice scaffold into which all changes we make from here on out can be integrated. It contains a small framework for modules and supports ready functions:


 * 1) FindReplace uses two external libraries
 * 2) it needs to wait for the editor to be ready and
 * 3) I would strongly suggest to use an external HTML file for the dialog.

So there's lots of asynchronous loading and potentially lots of concurrency issues. The ready functions are absolutely necessary.

I also think it's wise to split the code into at least two modules. Actually I think a third for the toolbar is warranted - if only because the toolbar code can be written and maintained separately from everything else.

If you want to rewrite the UI from the ground up, do take a look at the scaffold, please!

I can give you a few nice links if you aren't familiar with the module pattern btw.

I'll continue to work on the Shadow now. My guesstimate is it's one or two more days of work. We'll see :)