Permalink
Browse files

Fixed copying of textlayers

  • Loading branch information...
nvh committed Mar 2, 2018
1 parent 1206293 commit 3788e181d5873b7b3c77846089a4fadc0bf65191
Showing with 4 additions and 1 deletion.
  1. +4 −1 framer/TextLayer.coffee
View
@@ -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"))

0 comments on commit 3788e18

Please sign in to comment.