We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Insert image at cursor rather than at bottom of field in editor

How Do I?

tbritton's avatar
tbritton
714 posts
9 years ago
tbritton's avatar tbritton

The editor of the online magazine I am webmaster for has a complaint.

The old behavior of inserting a photo would insert the photo at the cursor. Now since upgrading from 2.10.3 to 3.2.1 it inserts the photo always at the bottom of the field she’s editing.

Is there a way to make it insert at the cursor again?

Also, where did the image re-sizing box go after you upload? It just inserts the <pre><code><img

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Hi Terry,

What type of field is the photo being inserted into? Is it a Rich Text Editor or a Textarea field?

       
tbritton's avatar
tbritton
714 posts
9 years ago
tbritton's avatar tbritton

Mostly they use textarea fields for the articles.

I have a couple cases where we used rich text (rte).

Does changing the field type solve this problem?

Will it create new problems to change existing field types to rich text? That’s what probably worries me the most. We have almost ten years worth of stories in there using textarea. (This the Rural Intelligence client that wants this.)

Thanks for the quick response, Seth.

Terry

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Hi Terry,

I’ve done some testing and in 3.2.1 with Textareas, we are not using the file picker (this will change with the next release) but I am seeing the image inserting at the cursor. With the RTE I am also seeing the image being added at the cursor as well. Do you know which version of EE your clients are running?

       
tbritton's avatar
tbritton
714 posts
9 years ago
tbritton's avatar tbritton

That is odd - we are using 3.2.1. I did not test myself - I took the editor’s word for it that it did not work. I’ll go make some checks.

I assumed she is using the file picker at the bottom left beneath the field, so that statement is a bit confusing saying you are not. How are you uploading images otherwise?

Terry

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Apologies! I was using the image button in the HTML buttons bar. I re-tested with the upload button in the lower-left and on 3.2.1 it is using the Filepicker and it is inserting at the cursor for me.

       
Rural Intelligence's avatar
Rural Intelligence
18 posts
9 years ago
Rural Intelligence's avatar Rural Intelligence

Seth,

I have tested it out myself, and if you use the HTML button to insert an image, as you saw it does insert at the cursor.

Additionally, if you use the file-picker and select from among previously uploaded images, then it also will insert the photo at the cursor. I am certain you saw this behavior as well.

Where it fails to insert the image at the cursor is if you upload a new item to a photo directory. In that instance only, it inserts the link at the bottom of the field.

So, for some reason, it behaves differently if you upload a new photo. Since we never re-use older photos in stories at this magazine site, we never even noticed it would work from the “existing images” file picker.

Terry

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

By chance are you using FireFox when testing? I’ve been able to reproduce it in that browser, but only in that browser.

       
tbritton's avatar
tbritton
714 posts
9 years ago
tbritton's avatar tbritton

Seth,

I was using Firefox when I performed my test, but my editor is using Chrome on a Mac and having the problem there.

Terry

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Hi Terry,

I have filed a bug report for this. If you subscribe to it you’ll be notified as soon as we have a solution in place.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.