Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 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();