Is there any reason why you are placing your form inside a rich text editor field?
If you need to build a form in the RTE I think you should look into Axendo form package instead.
But I am pretty sure you can achieve your goal by just making your form in an XSLT macro or just directly in a template. It all depends on your usage. But the RTE field is not intended for building forms directly in it imho. :)
Well, I'm not a 'techie' and our webserver/Umbraco is hosted in another office. It can take some time before my requests are answered let alone implemented :)
The form code is generated by our email marketing software (campaign monitor) and I'd have no idea on how to turn that into an XSLT!
Really I just wish Umbraco wouldn't take it uopn itself to format everything given that these elements are in the valid elements list. Though having said that I've noticed that the form tag itself doesn't break until I click 'save'.
I tried this on our test server and it seemed to work well. However, our developer put it on the webserver and Umbraco is still removing the <form> tags when the page is saved.
Did he disable rendering in editor? TinyMCE doesn't (shouldn't) interfere with markup from a macro if the macro isn't actually being rendered in the editor.
Also, you want to be sure that this isn't being added inside a
<form runat="server">
tag in your templates, else it will cause problems.
This might call for just creating a new template for your textpage (called campaignmonitor or whatever) and assigning it to the page that you want to use this on.
I am having some trouble with the RTE (tinymce v3) after upgrading to v4.0.3.
It seems that all new lines (Enter hits) are now translated into <div></div> instead of <p></p> as before.... what could be the issue and how could I change that to its normal behaviour? Not even the combination Shift+Enter, that produced a <br> before, is working anymore...
Unfortunately I didn't manage to find a diferent topic talking about my issue and decided that this one is the appropriate on to comment in.
Hi Raz, I think I would start a new topic for this issue as it is not related to the original form issue. In your new post, could you also specify which version of browser you're using (and your other sttas).
TinyMCE formatting my code!
Hi all, losing my mind over this so hopefully someone can point me in the right direction!
I'm trying to add a subscribe form to our website but TinyMCE keeps spitting out my code. Below is the intended code
And here is what TinyMCE does to it
First of all you can see the <form> tag in now immediately closed, which is a pretty fatal error. Why is it doing this?
Secondly, the <span> tags lose their CLASS attribute, the <label> tags lose their FOR attribute and the <input> tag loses its ID attribute.
I've looked at TinyMCE.cfg and, as far as I can see, this should not be the case.
Sorry for the long post but can anyone help out with this?
Cheers
Is there any reason why you are placing your form inside a rich text editor field?
If you need to build a form in the RTE I think you should look into Axendo form package instead.
But I am pretty sure you can achieve your goal by just making your form in an XSLT macro or just directly in a template. It all depends on your usage. But the RTE field is not intended for building forms directly in it imho. :)
/Jan
Well, I'm not a 'techie' and our webserver/Umbraco is hosted in another office. It can take some time before my requests are answered let alone implemented :)
The form code is generated by our email marketing software (campaign monitor) and I'd have no idea on how to turn that into an XSLT!
Really I just wish Umbraco wouldn't take it uopn itself to format everything given that these elements are in the valid elements list. Though having said that I've noticed that the form tag itself doesn't break until I click 'save'.
You should be able to add this to an xslt file, if you have access to the "developers" section on your umbraco install
Worth a shot!
Hi, thanks Dan!
I tried this on our test server and it seemed to work well. However, our developer put it on the webserver and Umbraco is still removing the <form> tags when the page is saved.
:-/
Did he disable rendering in editor? TinyMCE doesn't (shouldn't) interfere with markup from a macro if the macro isn't actually being rendered in the editor.
Also, you want to be sure that this isn't being added inside a
tag in your templates, else it will cause problems.
This might call for just creating a new template for your textpage (called campaignmonitor or whatever) and assigning it to the page that you want to use this on.
Dan
Dan, thanks for your help.
Rendering was disabled and I'm not sure about the template but there's no runat="server" on the page source if that helps?
TinyMCE isn't removing the <form> tag itself (after clicking update). Umbraco removes it when the page is saved.
You won't see the runat="server" when viewing source - you should be looking for an outer form tag as nested forms won't work.
You could also try this
having said this, I do think that this kind of thing belongs in templates.
Dan
Ahh, this form is nested within another form. I never notied that before.
Thank you Dan. At least we now have an idea of what needs fixing :)
On a related note TinyMCE is removing a class. I've set
However in HTML I paste this in
<strong class="heading1"><span>Widget</span> Online Store</strong>
And TinyMCE saves this
<strong><span>Widget</span> Online Store</strong>
Any ideas how to stop this?
Rich
Did you restart the application after you changed the tinyMCEconfig? If you didn't, the changes won't take effect.
You can restart the application by touching the web.config.
HTH,
PeterD
You may also need to find
in the TinyMCE settings config file and change it ti=o
(then restart your app)
Dan
Hi guys,
I am having some trouble with the RTE (tinymce v3) after upgrading to v4.0.3.
It seems that all new lines (Enter hits) are now translated into <div></div> instead of <p></p> as before.... what could be the issue and how could I change that to its normal behaviour? Not even the combination Shift+Enter, that produced a <br> before, is working anymore...
Unfortunately I didn't manage to find a diferent topic talking about my issue and decided that this one is the appropriate on to comment in.
Thank you!
Hi Raz, I think I would start a new topic for this issue as it is not related to the original form issue. In your new post, could you also specify which version of browser you're using (and your other sttas).
Thanks,
Nik
is working on a reply...