Skip to content

Commit

Permalink
Addressed issue of passing dom from bai_shortcut editable content lin…
Browse files Browse the repository at this point in the history
…k [#16 state:resolved]
  • Loading branch information
leveille committed Jan 27, 2009
1 parent 0dafce4 commit 6455f12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions smc/core/libraries/javascripts/smc.js
Expand Up @@ -199,13 +199,12 @@ SMC = function(){
try {
//Do not remove the following line, as it is necessary to ensure that
//the editor will pull valid content from the text area
document.getElementById('baiEditor').value = $this.innerHTML;
var oEditor = FCKeditorAPI.GetInstance('baiEditor');
document.getElementById(SMC.editorName).value = $this.innerHTML;
var oEditor = FCKeditorAPI.GetInstance(SMC.editorName);
oEditor.SetHTML($this.innerHTML);
showDialog($this);
} catch (err) {
error(err.toString());
} finally {
showDialog($this);
}
}

Expand Down Expand Up @@ -257,8 +256,9 @@ SMC = function(){
},

'a.bai_shortcut@mousedown': function(e, target){
Ext.get(getId(this)).removeClass('focus');
populateEditor(this);
var $that = Ext.get(getId(this));
$that.removeClass('focus');
populateEditor($that.dom);
},

'a.bai_shortcut@mouseover': function(e, target){
Expand Down

0 comments on commit 6455f12

Please sign in to comment.