Home › Forums › Calendar Products › Events Calendar PRO › Problems with the editor in wordpress (visual mode)
- This topic has 2 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
September 18, 2015 at 1:14 pm #1006577
Kjell Pira
ParticipantHello
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.
September 21, 2015 at 8:03 am #1007034Brian
MemberHi,
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:
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
October 6, 2015 at 7:05 am #1011857Support Droid
KeymasterThis 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. -
This topic was modified 10 years, 7 months ago by
-
AuthorPosts
- The topic ‘Problems with the editor in wordpress (visual mode)’ is closed to new replies.
