TinyMCE is removing <!-- startUmbMacro --> <!-- endUmbMacro --> from macro
When adding a macro inside the Rich Text Editor, TinyMCE is removing the <!-- startUmbMacro --> <!-- endUmbMacro --> tags from my macro when saving. On the original save it works fine. But if you try to save it again you get the error listed below.
Can you stop TinyMCE from stripping the comment tags? Or if the
comment tags are not really required for the macro to function why is
umbraco throwing the error?
I cannot ask my users to delete the
macro and then put it back every time they update the content or a
property value on the page.
I'm on Umbraco version 4.7.0 and .NET version 4.0. I have made no customizations to TinyMCE at all.
Thanks for any help you can give on this.
Gregg
Length cannot be less than zero. Parameter name: length
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
I have the exact same problem... Did you find a solution?
It seems when you reload a node with a macro in the editor, it removes the following comment:
<!-- startUmbMacro --><!-- endUmbMacro -->
If i click on the macro area, hit the macro button and then OK, it gets added back in (after the macro embed code, not around it strangely enough)... but if i try to insert it manually via the HTML editor it will still fail (so it seems you actually have to go through the process of adding or editing the macro - so something else seems to be happening in the background)
Hoping this is a known bug as like Gregg in the post above, i can't expect my users to edit their macros every time they want to make a change to a page.
Actually it's the act of "Updating" the HTML editor that causes the tags to be stripped out... so manually adding them back in was a waste of time. Doh!
TinyMCE is removing <!-- startUmbMacro --> <!-- endUmbMacro --> from macro
When adding a macro inside the Rich Text Editor, TinyMCE is removing the <!-- startUmbMacro --> <!-- endUmbMacro --> tags from my macro when saving. On the original save it works fine. But if you try to save it again you get the error listed below.
Can you stop TinyMCE from stripping the comment tags? Or if the comment tags are not really required for the macro to function why is umbraco throwing the error?
I cannot ask my users to delete the macro and then put it back every time they update the content or a property value on the page.
I'm on Umbraco version 4.7.0 and .NET version 4.0. I have made no customizations to TinyMCE at all.
Thanks for any help you can give on this.
Gregg
Length cannot be less than zero.
Parameter name: length
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
I have the exact same problem... Did you find a solution?
It seems when you reload a node with a macro in the editor, it removes the following comment:
<!-- startUmbMacro --><!-- endUmbMacro -->
If i click on the macro area, hit the macro button and then OK, it gets added back in (after the macro embed code, not around it strangely enough)... but if i try to insert it manually via the HTML editor it will still fail (so it seems you actually have to go through the process of adding or editing the macro - so something else seems to be happening in the background)
Hoping this is a known bug as like Gregg in the post above, i can't expect my users to edit their macros every time they want to make a change to a page.
Thanks all :)
Actually it's the act of "Updating" the HTML editor that causes the tags to be stripped out... so manually adding them back in was a waste of time. Doh!
Definitely a bug... fix anybody?
Ah yup i found it..
http://umbraco.codeplex.com/workitem/30620
Please vote for this to be fixed... http://umbraco.codeplex.com/workitem/30620
Hmmm... I inadvertently stumbled across a potential fix for this one.. just disable the TidyEditorContent switch in Umbraco.config:
<!-- clean editor content with use of tidy -->
<TidyEditorContent>False</TidyEditorContent>
To be honest i'm not entirely sure what this tidy functionality is supposed to do, but for now this is working fine for me.
is working on a reply...