• Ok so at my work we have a login that takes someone straight into an editable post.

    Each day this post gets edited because we operate a frozen yogurt company that changes flavors every day.

    Here’s an example of one post

    • <span style=”color: #ed1c24;”>test flavor 1;</span> Description shows up here.
    • <span style=”color: #ed1c24;”>Test flavor 2;</span> Description shows up here.
    • <span style=”color: #ed1c24;”>test flavor 3;</span> Description shows up here.
    • <span style=”color: #ed1c24;”>Test flavor 4;</span> Description shows up here.
    • <span style=”color: #ed1c24;”>test flavor 5;</span> Description shows up here.
    • <span style=”color: #ed1c24;”>Test flavor 6;</span> Description shows up here.

    Now everything displays how we want it, the problem we’re having is when someone is editing the post in visual mode and either erase too much or copy paste, it’s ruining the formatting and causing the results to be inconsistent. What can I do to make the code uneditable but that actual text editable?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stop HTML code from being edited in WordPress Post’ is closed to new replies.