Extension

Developer
Supported

Textile Editor Helper (TEH)

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Mike Kroll

     

You must be logged in to post.

Maintain selected text when creating a link with native File Browser

General

Low
Low

Not sure if this is a bug or simply a missing feature, but here’s what happens:

- Select a bit of text, for example “My document”
- Click the File Browser
- Select a non-image file to insert
- Now the “My document” text is replaced with a link with the file name as the text, instead of the selected text.

It would be great if it would wrap the link around the selected text instead of replacing it with the file name.

imagehat
# 1
Developer
imagehat

Missing feature I’d say, but a great point. I just pushed an update to maintain the text selection when choosing a non-image.

Technically it would be easy to link an image if text was selected too, but for now I figure I’ll just mimic what the native File Browser behavior is, which is only to link non-images.

Grab the update (2.0.4) and let me know if you run into any issues. Thanks!

-mike

Low
# 2
Low

It appears to be working! Thanks for the update, mike!