badsyntax/tinymce-custom-inlinepopups — Issue #6: Alert and confirm dialog messages
Author: badsyntax
Created: 2012-02-14 09:38:17+00:00
State: open

Pasted from the blog:

"Love this, thank you so much. One suggestion for github version, line 205:

Change:
content : DOM.encode(t.editor.getLang(txt, txt)),

To:
content : t.editor.getLang(txt.replace(/\n/g, "
"), txt.replace(/\n/g, "
")),

This will handle line breaks; without it, Alert and Confirm dialogs stretch way out and they shouldn't. This change wouldn't work with DOM.encode (it just shows
) so I eliminated it, I don't think it's too big a risk anyway. I would love it if this would apply .button() from the jQuery UI theme to the buttons!!! Any chance I could talk you into it? Trying to do it myself but kinda spinning my wheels. Just being greedy but I want my TinyMCE popups to match exactly. TIA!"

"Ok looks funny... should be txt.replace(/\,/g,"< b r / >"),txt.replace(/\,/g,"< b r / >")), less the extra spaces of course.

Also... (it just shows < b r / >) so I eliminated it..."