Jump to content

front-end editing behavior?


tooth-paste
 Share

Recommended Posts

I'am testing with the new front-end editing function and run into a couple of things.

1 When I copy/paste text to the front end, tags are being added that mess up the design.

post-2727-0-63902700-1450477978_thumb.pn

2 The front end does not work on buttons. The <a> tag overrides.

post-2727-0-16770100-1450477932_thumb.pn

Does anyone knows how to solve this?

Link to comment
Share on other sites

I'am testing with the new front-end editing function and run into a couple of things.

1 When I copy/paste text to the front end, tags are being added that mess up the design.

attachicon.gifSchermafbeelding 2015-12-18 om 22.53.50.png

2 The front end does not work on buttons. The <a> tag overrides.

attachicon.gifSchermafbeelding 2015-12-18 om 22.40.40.png

Does anyone knows how to solve this?

Hi, copy and pasting will often try and carry it's formatting. I'm going to assume you are using CKEditor when pasting in? There is an option to remove formatting when pasting it's a clipboard with a [T] next to it. 

To fix the a tag problem, Ryan fixed this in update 3.0.2 - https://processwire.com/blog/posts/processwire-2.7.2-master-and-3.0.2-devns/

If you find this problem still exists, please report it on github :-)

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

1 When I copy/paste text to the front end, tags are being added that mess up the design.

I see that contents are cloned into a div by PW but original classes are not kept (using option A). Copying over the original classes to the ".pw-edit-orig" div could help keeping the original design and it would be easy to implement using jQuery. On edit the formatting are gone but after save they are back, so imo it would be a step forward - messing up the original design could be stressful for the client.

post-3156-0-96528800-1454012967_thumb.gi

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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...