• 0

visual editor disabled

Question

Posted · Report post

Hello... having an issue with my visual editor.  I placed a TextBox in my header section and placed embed code for a constant contact email form in the textbox.  after hitting refresh, my visual editor no longer allows me to edit any of my sections and I cannot access any of the settings.  its as if it has been completely disabled.

 

obviously the constant contact code is the issue but how can I get into the textbox to delete the embed code if the edit icons are no longer available?  would there be a way to access the content for the textbox section within the database?

 

any advice or suggestions would be appreciated.  here is a link to my site if it helps but the issue is only visible when logged into dms

 

http://wp.16thstreettheater.org/

 

 

Share this post


Link to post
Share on other sites

11 answers to this question

  • 0

Posted · Report post

thanks batman.  on the link you sent me... it says "The settings for your sections etc.. are stored in the databse."  so technically, I should be able to find the text box section from within the database and manually delete the content I placed...  I will give this a shot. any suggestions on where section data is stored within the database?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

a couple of updates.... I tried re-installing my DMS but problem is still there: the visual editor is frozen and all section edit buttons are missing.

 

I've been looking around PHPmyadmin but cannot locate where any of the section data is stored.   I assuming it would be under wp_options or wp_meta? 

 

here is a screenshot that hightslights the text box that contains the code.  you can also see the code I need to remove.

http://scientistsofmedia.net/dms-error.png

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

scientistsofmedia I had the exact same issue, if you had simply typed jquery in the forum search option you would have got this amongst other related subjects:

http://forum.pagelines.com/topic/28667-jquery-blown-up-front-end-editor/

 

But it seems like you might have caused another issue that my fix will not address. Because you have placed it in the header then it means that it will be shown on every page/post and category on your site.

 

Give it a go and see what happens, the only other way would be to find it in the db as the other post suggested but I have not been down that route luckily.

 

Good luck.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

thank you thebastion.  I tried your suggestions but did not work.  but I was able to find the section within the database after all by doing a search for the section ID number.  was able to remove the conflicting code and everything appears to be working again.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

@scientistofmedia you might want to post this as a major issue as it really does cause some trouble if you do it as you and me have found out.

 

log in and do it here if you want:

https://github.com/pagelines/DMS/issues

 

Or Danny"] @[member="Rob you might want to sticky this issue as there really is only this and my post relating to it and when it happens you have no idea why initially. Maybe some more notes on the ......../me logs into github

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Someone paste the code you're adding.

 

I'm suspecting that the problem is that DMS, being created largely with Javascript and JQuery will conflict with some javascripts added directly into text areas (which themselves are built are javascript).  The code essentially breaks the system.  However, I'm told that if the javascript is converted to a shortcode, the shortcode will not break the system.

 

Ellen has successfully added UberMenu, without the fix provided by them, using a shortcode to Business Branding, making it look exactly like BrandNav did in Framework.

 

I've not tested this http://wordpress.org/plugins/my-shortcodes/   BUT, I have asked the developers to come up with a DMS solution to convert javascripts to shortcode.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Rob I've already added a github issue regarding adding a script before footer or something just like the current header option. So at least if you do blow anything up you can get back in without having to delete db entries!

 

the code that affected the Op is here:

http://scientistsofmedia.net/dms-error.png

 

My code was simply:

<script>
        jQuery(document).ready(function() {
            jQuery("#portfolio-list").filterable();
        });
</script>

 

Placing it in the available header section caused the front end to lock up, then adding it via the text widget blew it up completely, adding it into the footer.php didnt work but it also didnt blow up the editor then finally adding it via my functions worked fine.

 

Personally I dont really use shortcodes and I have started to make my own for clients now so I dont have to use any of these things. But seeing as simply adding a tiny bit of jQuery into a text widget can cause total meltdown of the DMS editor it needs to be addressed. I have added it to the docs section as well for Danny to check out.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

sorry, I no longer have access to the code but it was javascript based and contained no jquery

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I take that back, I was able to find a copy.  the code listed above might be part of the modal I had placed within the text box.  here is the actual java I placed within the modal

 

<script type="text/javascript" src="http://www.formstack.com/forms/js.php?1554158-yTz8wqL3fF-v3&jsonp"></script><noscript><a href="http://www.formstack.com/forms/?1554158-yTz8wqL3fF" title="Online Form">Online Form - Constant Contact Signup Form</a></noscript><div style="text-align:right; font-size:x-small;">

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I'm not sure why this happened, but DMS is built largely on javascript and jquery.  For some odd reason, adding javascript causes issues in most any section.  I'm noticing that adding ad code causes javascript errors on my site too.  Meanwhile, one of the developers is working on a section that encapsulates the added code so that it doesn't break DMS. She should have that done soon.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now