Browse files

Ensure that the HTML is up to date before scanning it as new text may…

… have been entered and jQuery may not know about it yet. (ht: markoh)
  • Loading branch information...
1 parent fcb24d0 commit fc840af803020253ce0306eb54a8e1d3743a49d9 @parndt parndt committed Sep 16, 2010
View
1 vendor/refinerycms/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js
@@ -1212,6 +1212,7 @@ WYMeditor.editor.prototype.update = function() {
* @description Opens a dialog box
*/
WYMeditor.editor.prototype.dialog = function( dialogType ) {
+ this.update();
var path = this._wym._options.dialogPath + dialogType;
this._current_unique_stamp = this.uniqueStamp();

0 comments on commit fc840af

Please sign in to comment.