Giter VIP home page Giter VIP logo

Comments (7)

ManUtopiK avatar ManUtopiK commented on July 24, 2024

I got similar problems with some clients. So I made a BIG message on the edit page screen to explain more how is the process with Tailor. But to display a big message, I needed some html markup. It's why I did this pull request #38.

But maybe wp_editor should be completely hidden or hidden with an overlay and the message above.

from tailor.

andrew-worsfold avatar andrew-worsfold commented on July 24, 2024

@diogocsc -

The challenge here is that the post content (which is just simple HTML) lacks information about the layout, which is stored separately in post meta. Translating changes made within the editor into the Tailor layout is therefore no easy task.

Disabling the editor is certainly possible, but must be done carefully.

@diogocsc, @ManUtopiK -

The reason for having the editor both visible and accessible is to prevent users from being locked out of making simple content changes after having "Tailored" a post or page. Although I am still extremely hesitant to block people from core WordPress functionality (like editing posts), I understand where you are coming from here and recognise that for some developer/customer relationships this may be the best option.

I'm thinking we could have this be something that people "opt-in" to on the Settings page (but also allow developers to filter the default setting so people in your situation don't need to necessarily educate users on the topic). I see @diogocsc has made this recommendation in one of the related issues.

Happy to explore options here. Does anyone have any code we could use as a starting point for this?

from tailor.

diogocsc avatar diogocsc commented on July 24, 2024

@andrew-worsfold, what do you mean by enhancement? After changing a toggle content area in WP Editor and then Edited throught Tailor, WP edit is overwriten.

As for code, maybe this is a good starting point ? : https://gist.github.com/atomtigerzoo/0dd49ed9ca67ec111465 ?

from tailor.

ThiagoAlbergoni avatar ThiagoAlbergoni commented on July 24, 2024

Hello Andrew, can you please help me with Tailor problem?
I'm getting this message when I'm editing a page from my WP:
'' Changes made to this page within the publisher will not be displayed in Tailor. Delete layout ''
What does that mean?
I click to close it, but she insists on appearing again, what happens if I delete the layout?
Please help me.

from tailor.

andrew-worsfold avatar andrew-worsfold commented on July 24, 2024

Hi @ThiagoAlbergoni -

Tailor stores information about the layout of the page as meta data and saves the resulting HTML as post content. This way the content is just that, content, and doesn't need to be processed during a page load (there are other reasons too, which I won't get in to).

The message that you're referring to simply means that if you edit the actual post content in the editor, that's what you'll see on the front end but it will differ from the stored layout information. The next time you launch Tailor, it will use the stored layout information to build the preview (which will differ from the saved content).

I hope that makes sense.

Cheers,
Andrew.

from tailor.

ThiagoAlbergoni avatar ThiagoAlbergoni commented on July 24, 2024

from tailor.

hustlelikeaboss avatar hustlelikeaboss commented on July 24, 2024

Has this been fixed? Looks like the content (mostly text) that I added directly inside the WordPress editor is preserved in Tailor.

from tailor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.