Jump to content

Frontend editing adding markup?


bernhard
 Share

Recommended Posts

I'm using frontend editing all the time. Suddenly on my new project when I tried to copy and paste several regular text-field contents:

Mjavyi6.png

I ended up with markup in my fields:

fb5I9CN.png

So I always need to hit the edit icon to edit it in the modal which shows the backend inputfield and there I can safely copy&paste like this:

59O8uKi.png

Any ideas why this would happen? I'm not sure why I didn't experience this behaviour so far. Maybe it's an update of something?

Link to comment
Share on other sites

I can reproduce this behaviour.

It seems if you copy a text from a website and paste it into the frontend editor all the formatting (this means all HTML tags and elements) are also copied. This works fine on regular body fields that allow HTML tags. For example you can just copy & paste entire HTML tables without creating them in the editor from scratch.

But when you then copy this text into a field that is set to not allow html tags it results in this kind of mess in the frontend:

image.png.e2fc51d21c0125a2bd47a5cf28f8ecf9.png

In the Backend it looks like this:

image.png.f8dbe20db0b217a9146900ff30ffca1e.png

This is because of the Textformatter settings for this headline field. HTML Tags are just rendered as plain text.

image.png.ba1392aad8b0d7a373feeda6f990b32a.png

  • Thanks 1
Link to comment
Share on other sites

Sorry, that was too short 😄 

Nope --> That was the answer to your question if your shortcuts make a difference.

Just tried to paste it into the html field of jsfiddle.net and it pastes just the text without any markup --> that was something that I tried on my own after your suggestion to see what is actually stored in my clipboard. But that was nonsense, I think. I thought that jsfiddle might also show all the markup with all the tags when pasting, but it just shows text only.

I'm not sure why this happens and what's going on and what is actually stored in the clipboard when copying text from websites, but I think a plain text field should be frontend editable without having to worry about encoded markup ending up in the field 🙂 

  • Haha 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...