autocomplete in html editor - Page 2...

User 38401 Photo


Senior Advisor
10,951 posts

they are wrong, and you might want to let them know this. I just realized what the issue was here. It doesn't work when just typing, you have to choose from the drop down list so:

Type <
Then choose from the list
or
Type <p
Then choose from the list

Then if you choose the <p> on the list that pops up it will finish for you and put the cursor between the p and the end bracket of the first part. The reason it doesn't put it between the 2 tags (and we had a long debate in here a couple years ago on it to figure out which is the best way lol) is because most of the time you will be adding a class or ID or something to a tag so they felt it would be more helpful to have the cursor land where you could start adding CSS tags in.

Please let the person you spoke with on the team know that they didn't answer that question correctly so they know for the future reference. Might be that the person didn't understand the question fully or that they weren't aware that that feature existed :)
User 2344653 Photo


Registered User
12 posts

I see,
and I see what you mean about it putting the cursor inside the first tag rather than in between them

It still dosen't do things like {}, () and "" though. I would find this useful especially as I often forgot to put them in where they are needed.

Thanks
User 38401 Photo


Senior Advisor
10,951 posts

There are a good handful of tags it will do the quotes for, not sure on the brackets for curly and curved though. Not sure on the CSS at all really. But in the HTML when you do the tags if you click the space such as:

<di (choose the tag <div> and you end up after the "v" of the first tag.

now type a space as if you were going to enter a class or id and you then get a dropdown again

Choose a tag such as "class" and it will enter"

class=""

so then you'll have

<div class=""></div>

And your cursor will be between the quotes which you should then have a drop down for the classes that are currently in your CSS file to choose from.

Hope that helps :)
User 2344653 Photo


Registered User
12 posts

Thanks Jo Ann, I'll have a play around with it to see what it does.
User 38401 Photo


Senior Advisor
10,951 posts

You're quite welcome, hopefully you'll find some new variations that I am unaware of too hehe. Have fun exploring! :)
User 2344653 Photo


Registered User
12 posts

Hi Jo Ann,

With regard to the cursor being put inside some of the tags (like <p>), I think coffee cup might be changing this.

The support person didn't really get what I was asking ( I don't think) but he wrote
'I see what you are referring to now. Yes, that is a known issue and we have it scheduled to be address in 12.9. The cursor is supposed to be in the between the two tags.'

So I think they might be changing that.

Also I wanted to ask you - following on from what you wrote,

'which you should then have a drop down for the classes that are currently in your CSS file to choose from'.

Does the editor look at linked style sheets and identify the classes (and ID's) and then add them to the dropdowns?
I didn't know it would do this, very useful if it does, have I understood you correctly?

thanks
from
Richard

User 38401 Photo


Senior Advisor
10,951 posts

Hiya Richard,

Yes that's what it's doing. It will only look in the CSS files that are linked to that page though, doesn't look at any that are linked to other pages. It also does not look for CSS tags that are within the page, only externally in a CSS file if I recall correctly. If you do what I suggest at the top (making sure you have some classes and ID's in your CSS file you should see how it works :)
User 2344653 Photo


Registered User
12 posts

Thanks, I'll check it out.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.