newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
898 stars 146 forks source link

Error pasting text #50

Closed giratikanon closed 7 years ago

giratikanon commented 7 years ago

Sometimes, after pasting text into the settings box, running ai2html causes a "can't paste type" error, presumably because of some special character or encoding issue:

image

image

giratikanon commented 7 years ago

Steps to reproduce:

  1. preview clone 2017-01-23-district-map
  2. Open the ai/0125 web DISTRICTmap.ai file in Illustrator
  3. Copy and paste formatted text from an email (such as the meeting time in a Google Calendar reminder)
  4. Paste it into the ai2html-settings as the summary or some other field
  5. Run ai2html, which throw an error in the middle of the script

This will only happen as long as the document remains open. If you save and close the Illustrator file and re-open it, the error will no longer happen.

mbloch commented 7 years ago

This error occurred when ai2html was run while a range of characters in a text object was selected. It is fixed in ai2html-beta.js.