Lack of preview of PDF file

If you follow https://guides.instructure.com/m/4152/l/68090-how-do-i-set-the-auto-open-for-inline-preview-for-files-using-the-rich-content-editor Links to an external site. you may find that after uploading the PDF file you get the name of the file with a box following it to allow downloads - but you do not get the preview icon. The problem is that RCE is inserting the incorrect class for the anchor:

"instructure_file_link"

As shown in the example below:

<p>A draft version of the first lecture is&nbsp;available at&nbsp;<a class="instructure_file_link" title="II2202-Introduction-Maguire-20160830.pdf" href="/courses/11/files/39574/download" data-api-endpoint="https://kth.instructure.com/api/v1/courses/11/files/39574" data-api-returntype="File">II2202-Introduction-Maguire-20160830.pdf</a></p>

The tool should have inserted the class

"instructure_file_link instructure_scribd_file" 

As shown in the example below:

<p>A draft version of the first lecture is&nbsp;available at&nbsp;<a class="instructure_file_link instructure_scribd_file" title="II2202-Introduction-Maguire-20160830.pdf" href="/courses/11/files/39574/download" data-api-endpoint="https://kth.instructure.com/api/v1/courses/11/files/39574" data-api-returntype="File">II2202-Introduction-Maguire-20160830.pdf</a></p>

In pictures:

Image

Image

Image

Image