Adding feature for thimble

Issue#1745: https://github.com/mozilla/thimble.mozilla.org/issues/1745

In this issue, they want to add a feature to allow users editing svg file instead of showing a preview.097d6f28-f42d-11e6-95fd-c60da32f8908.png

Analyze this issue

There is a function called findSuitableEditor(), it loops for all editors and returns one suitable editor. We can hack an imageView and let a canOpenFile() function return false when the users want to edit the svg file instead of viewing it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s