• Hello,

    I create a plugin with shotcuts, but I would like to keep some data of the post / page raw. I would like to do something like this

    [shortcut]my data[/shortcut]

    and “my data” should be “raw”, so no other filter should be change this data. How can I do this, which hooks are needed. If I use the html editor the code will be formated in the correct way, but on the visual editor the data between the shortcuts is changed. So I would like to use both editors.

    Thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Yes, the visual editor is fairly rude about re-formatting your input. If you can change your plugin and input so the data is an attribute within the shortcut tag, the editor should leave it alone. Something like:
    [shortcut data='my data']
    I haven’t had any trouble sending data this way, but in my case, the data is very simple and unlikely to get corrupted by the editor anyway. I not totally sure this will work with more complex data, but it’s something to try.

    Thread Starter flashpixx

    (@flashpixx)

    No I can’t change it because in the shortcut block is a lot of code (source code), that need not to be reformated, so I would like to supress any changing of the visual editor

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post / page save keep raw data’ is closed to new replies.