Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
fixed two small bugs
Browse files Browse the repository at this point in the history
1.the getLatex of FMEScreen returns the wrong value
2.security setting allows all domains now
  • Loading branch information
zasdfgbnm committed Sep 12, 2011
1 parent ad36847 commit e7c51fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/FMEScreen.as
Expand Up @@ -77,8 +77,7 @@ package
ins(clipboard);
}
public function getLatex():String{
var c:FMEContainer = cursor.getContainer();
return c.getLatex(0,c.length());
return content.getLatex(0,content.length());
}
}
}
1 change: 1 addition & 0 deletions src/FlashFormulaEditor.mxml
Expand Up @@ -22,6 +22,7 @@
protected function init_screen():void{
fmescreen.addChild(scr);
update_screen();
flash.system.Security.allowDomain("*");
ExternalInterface.addCallback("getLatex",getLatex);
}
protected function ins(latex:String):void{
Expand Down
Binary file not shown.

0 comments on commit e7c51fd

Please sign in to comment.