Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (21 sloc) 570 Bytes
// Fireworks Extension: Commands
// Fix Text Transformation.
// version: 1.0
// auther: @littlebusters
// license: MIT
function LBfixTransformationText()
{
var d = fw.getDocumentDOM();
var s = fw.selection;
if( !s.length ) return false;
for (var selLen = s.length - 1; selLen >= 0; selLen--) {
if( '[object Text]' == s[ selLen ].toString() ) {
var coord = { x: s[ selLen ].left, y: s[ selLen ].top };
fw.selection = s[ selLen ];
d.removeTransformation();
d.moveSelectionTo( coord, false, false );
}
};
return true;
}
LBfixTransformationText();
You can’t perform that action at this time.