Out of control HTML Editor Widget!

  • 1
  • Question
  • Updated 9 years ago
  • Answered
How do I stop the basted HTML widget from adding stuff in?

If I type this inside an anchor statement:
onmouseover="ddrivetip('Visit the Bower')";
onmouseout="hideddrivetip()"

it saves this:
onmouseover="ddrivetip('Visit the Bower')";=""
onmouseout="hideddrivetip()"

The additional ="" means it won't work and I can't stop it doing it! Help!!!!"
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
  • frustrated

Posted 9 years ago

  • 1
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Which browser are you using Rob.B ??
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Rob. B.

I'm sorry to hear that you're having difficulty with this. In addition to perhaps trying it in a different browser, it also may be indicative that the code is not properly set up.

Would you mind sharing with us your code so that we can see what's going on there?
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Firefox 3.0.15
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Thanks for letting us know which browser you are using. Would you mind sharing with us your code so we can investigate further.
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Hi.

I have triesdIE8, and Opera, the code works fine on my LAMP server, it's your editor that is making changes to the code!
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
OK just tried my code on my other site (which I was considering moving to Yola) hosted at streamline.net and it worked first time, exactly the same syntax.

Rob.
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
The code is a Dynamic Drive offering.

http://www.dynamicdrive.com/dynamicin...

Also I dont seem to have the option to edit any of these posts, hence the chain of posts, this is the 3rd in 10 minutes.

Rob.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Worked first time for me, Rob?
http://hindsite.synthasite.com/textto...
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
I don't doubt it, but what is inserting the ="" then?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
When you add a " in the html editor it will auto add another 1 for you - make sure your not adding an extra when it has already done it for you - If the code was not inside the correct quotes it will start to try to add stuff to fix it.

If the code is correct it wont add anything.

Lee.
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Hi,

I have had more of a play with this, if I create three HTML widgets (two for the header sections of the code, one for the link) it works fine. I put the first two at the top of the page and the third where I want it.

So this works (http://rtb2walks.co.uk/odd-html-to-tr..., but I can't do it like that on my live page (http://rtb2walks.co.uk/chatsworth---1...) as the link is in a block of text in a text widget. The link was made by highlighting the text and using the chain symbol in the tool bar to form the link. So far so good.
Now if I take the mouseover bits from the working link on my test page, then return to the text widget and use the HTML option, the HTML widget opens up and I can paste the mouseover bits. Save and it does not work. Go bach to the HTML widget and viola an extra ="" as been added.

Currently the code has been removed from the Chatsworth page.

This is what I am finding, there seems to be a difference in the behaviour of the HTML editor depending on if it is called from a HTML widget, or a Text widget.

Hope this helps a little.

Rob.B

Lee.

I have checked and removed the extras be fore save, I have printed screen dumps to make sure, save it reopen it and the extra ="" is there. not just an extra "" but an extra = as well. Not only is it there but it is directly after the ; (semi-colon) between the two mouseover statements, always in the same spot too.

Thanks anyway.

Rob.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
ive used code which didnt work in the text editor html editor but work fine in the html widget html editor - the text editor must try to add stuff to format the code.

Lee
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Yep it's a poor widget, but what else do I have to work with?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
you could just write and edit in Notepad then copy it into a html widget.
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Tried that but the text looks wrong, althought the HTML works. It's cown to inconsistency at the end of the day. Either it's an HTML editor or it's a text editor that allows limited HTML. Either way the limitations should be made clear or the behaviour consistant.

Not being pedantic, just want to build the site I want, not conform to Yola's inability to behave in a predicatable maner.

If all you want is to play with widgets Yola seems fine, anything else risks a whole world of pain in my view.
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Giving up on this one as I don't think I'm going to get an answer.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
If you'd like Rob, can you send me an email to support@yola.com and I can take a closer look at this?
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
I have had trouble like this too where it puts in the auto quote but then it jumps to the first space in the first line and takes out the space. This causes the code to not work. It will also jump to the first space if you move the scroll bar over. I have learned to work around it by just redoing it until it decides that it will behave and not jump like that. Shrug. Frankly, there are bugs where ever you go and Yola still has the best thing out there.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Thanks Diane! I am a bit concerned though that you're having this bug as well. Would you mind telling me what browser and browser version you are using and if this is occurring through an HTML widget and/or the HTML in the text widget? Thanks!
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
I'm using Safari 4.0 and it happens in either widget
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Diane.

Sorry if I appeared rude, but was more than a little wound up with being told to clear chashe, and log off and on. I was suprised not to be told to reboot! I felt like I was just getting stock answers without any appreciation that this is a real issue, not a client problem.

Rob
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
No, you didn't appear rude. I can understand your frustration. Believe me, I've had lots of frustrating times with yola, with Safari, with the internet, with the computer...the kids...life....:) I really hope you can find something that works for you. I must say I've gotten used to yola's quirks whether it's yola or the browser or who knows the exact culprit?
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
This isn't a bug, it's consistant. Why is it like this, is it the same editor or not.

Just keep doing it until it works is a hopeless answer to be honest, I've been trying for days and it's consistantly adding ="" not just "". It's trying to pre-enpt my code!

I have proven this by going into the test widget and opening the HTML editor then pasting it into a HTML widget, ad the new mouse events all ok, but the text formatting goes off and is difficult to correct. So now it works but looks wrong.

Next step Copy it back from the HTML widget into the HTML editor in the TEXT widget, guess what an extra ="" after the ; in the achor statement. The text formatting can now be easily corrected but the code does not work.

I can't win.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Hi Rob,

I have never had this problem before, but then again, I only use the HTML editor for everything, even text. The only time I ever use the text widget is for adding spaces.

Is it not possible, Rob, to format and place the text in an HTML widget so that it looks the same as if it were done in the text widget?? This would be a work around until one of the engineers have a look at this.

The other thing I forgot to mention, is that I always keep each snippet of code in a seperate HTML widget, as you described above. I find it easier to manage this way,
and it always seems to work first time for me.

I'm not going to try replicate your problem, as I would not normally do things this way around. I agree, if there is a bug, it needs to be sorted out, but for now, just stick to the HTML editor if you want to use this particular piece of code.
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
Thanks for the honest answer, but I have given up on this, and won't try any more Java script in Yola sites. I think I can manage my site OK without tooltips, but it is annoying! As are some of the answers I have had.

Unfortunately I will not be moving my photographic site to Yola and going Pro, although www.rtb2walks.co.uk will remain with you.

Thanks again.

Rob.
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
thought you might like to see a screen shot of the problem. Note the space between div and style is missing. And the =""
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
just happened five minutes ago
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
Hi Guys,

The html editor will try to fix incorrectly added code, If a " or a ; are out of place it will try to fix it for you, this is not a bug its the way it is supposed to work, the code was wrong in the first place - thats where the problem lies.

The text widget html editor works differently from the html widget html editor.

--------------------------------------------------------------------------------------------------

So ive been doing my own testing and theses are the results -

Lets take a html widget:

and add a closed break tag with the slash the wrong way around
<!-- <br \> -->

The html editor ignores the incorrect code and gives you the line break.



Now lets do it again with a text widget:

The text widgets html editor trys to fix the bad code, still gives you the line break and this happens...



If anything this proves that the text editors html editor is more strict than a html widget. However it only trys to fix what is wrong. Good code = no problem.

If you have very complex code always add it to a html widget.

Lee.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Good investigative work Lee!
Photo of Ed-a-Torials @ Honey Bear Playhomes

Ed-a-Torials @ Honey Bear Playhomes, Champion

  • 2582 Posts
  • 279 Reply Likes
I agree

Lee gets the strawberry covered brownie award today friends... Great detective work buddy...

Photo of Jonathan Hitchcock

Jonathan Hitchcock

  • 37 Posts
  • 16 Reply Likes
Hi Rob.

Lee is correct - the widget will fix any broken HTML that you paste into it. In your case, you are putting a semicolon where there should be no semicolon. The text you seem to be pasting in is:

<a href="somewhere" onmouseover="ddrivetip('Visit the Bower')"; onmouseout="hideddrivetip()">

HTML does not permit semicolons (or anything else) appearing randomly in the middle of tags. The usual way to deal with things that appear where attributes are supposed to be is to turn them into attributes by giving them a value. So, if you put the word 'thing' in there by itself:

<a thing href="somewhere">

It would be converted to an attribute like so:

<a thing="" href="somewhere">

Try it!

So, to answer your original question - fix the HTML you are pasting in, and the widget won't have to try to fix it for you!
Photo of Rob.B

Rob.B

  • 281 Posts
  • 4 Reply Likes
OK but that was direct from dynamic drive, no matter where I put the ; it adds ="". No other editor I know does this, and it works fine everywhere but Yola HTML in the text widget, it even works in the YOLA HTML widget without adding the ="".

So it's inconsistant, and I'm sure the guy's at dynamic drive know how to code.

It was all on one line when pasted, but the HTML editor chops it onto several lines.

Sorry don't agree!! Why not admit it's not the best!!!!
Photo of William

William

  • 294 Posts
  • 0 Reply Likes
I agree wholeheartedly Rob.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
<!--

Just to prove Jonathans points above i added the code to a page and ran it through a html validator....

line 1 column 1 - Warning: <a> attribute ";" lacks value

So it seems the code is incorrect, the ; is in the place of an attribute and should contain a value.

You should email DD and tell them - seems your condeming the html ediotr for doing its job correctly. :)

Lee. -->
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
So how come I can delete the widget, put in a new one, paste in the same code and have it work? Also this problem can happen just by moving the scroll bar. A lot of times the only thing I may be changing about a code is something like a color.