Skip to content

Commit

Permalink
Fixed copying of textlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Mar 2, 2018
1 parent 1206293 commit 3788e18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framer/TextLayer.coffee
Expand Up @@ -56,8 +56,11 @@ class exports.TextLayer extends Layer
shadowType: "text"
clip: false
createHTMLElement: true

if options.styledTextOptions?
options.styledText = options.styledTextOptions
delete options.styledTextOptions
if options.styledText?
delete options.text
@styledTextOptions = options.styledText
options.color ?= @_styledText.getStyle("color")
options.fontSize ?= parseFloat(@_styledText.getStyle("fontSize"))
Expand Down

0 comments on commit 3788e18

Please sign in to comment.