Problems with the editor in wordpress (visual mode)

Home Forums Calendar Products Events Calendar PRO Problems with the editor in wordpress (visual mode)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1006577
    Kjell Pira
    Participant

    Hello
    Have a problem with Event Calender PRO depending on whether I use the visual editor, or in code mode. My customer has two different booking functions on each event, and book tickets and dinner reservation. The booking is made through from two different websites. The problem is that when you switch to the visual mode it removes the script away as handles pop-up windows. The code used is:

    a href = “https: // address of the page” onclick = “was w = 800, h = 600, l = (screen.width – w) / 2, t = (screen.height – h) / 2; window .open (this.href, ”, ‘width =’ + w + ‘height =’ + h + ‘, left =’ + l + ‘, top =’ + t + ‘, scrollbars = yes’); return false “> < span style = “font-family: Oswald; font-size: 18px; font-weight: normal; text-transform: uppercase;”> Buy ticket </ span>

    It works fine when I do administers the eventpage, but when the customer should do this and switch to the visual mode of the editor so disappears part of the code:

    a href=”https://address of the page”> <span style = “font-family: Oswald; font-size: 18px; font-weight: normal; text-transform: uppercase;”> Buy ticket </ span >

    The function that controls the pop-up window disappears and everything opens in the same window.

    Do you have any solution for this? Have used the “code” tag in the editor, but it does not help.

    • This topic was modified 10 years, 7 months ago by Kjell Pira.
    • This topic was modified 10 years, 7 months ago by Kjell Pira.
    #1007034
    Brian
    Member

    Hi,

    Sorry for the issues you are having.

    What you are describing with the coding being stripped is part of the WordPress Visual Editor’s features to prevent scripts from being included in the editor.

    Since we use the default settings from WordPress that is why the Events Visual Editor does that.

    I found this coding that might help:

    https://wordpress.org/support/topic/wp-edit-preventing-wordpress-from-stripping-out-onclick-javascript#post-6874234

    But beyond that we are limited in providing coding to modify default WordPress behavior.

    However, I can try to answer a question or two about it.

    Thanks

    #1011857
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Problems with the editor in wordpress (visual mode)’ is closed to new replies.