More in this section

Forums / Bugs & Issues / certain code into content box will break SF

certain code into content box will break SF

2 posts, 0 answered
  1. Lasse
    Lasse avatar
    30 posts
    08 Jun 2012
    19 Jan 2011
    Link to this post

    It seems that if one adds a content block into template (or perhaps just to the page), then goes to edit the block.. and writes something like the following:

    <p style="width:12px> &nbsp </p>

    if saved, this is irreversible error.. as there are no more edit buttons on any of the blocks (any "edit" and "more" buttons do not come up, although you are able to see that there would be edit-link there if you hover over it with the mouse) on the page. In fact, you can't even drag any widgets or layout controls.

    If there are other templates that are based on template that has this kind of mistake, they will suffer the same fate - ie they can't be edited. Nor can any pages that are based a) on the broken template or b) on template that has the broken template as ancestor at some point of the tree of base templates.

    There is one error reported, when the page is accessed with Chrome:

    Telerik.Web.UI.WebResource.axd:14057Uncaught TypeError: Cannot call method 'setAttribute' of undefined

    Firefox on the other hand reports the following error:

    Error: this._middleRightBar is undefined
    Source File: http://localhost:367/WF_Test/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl08_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Sitefinity.Resources%3aen-US%3a3dfc1080-eaf3-458e-bf48-a065bc9fddc9%3a5fd29111%3a7ee0bb1f%3a83eb063b%3a64dcfe0a%3a1154458f%3a2232f901%3a24e33f3%3bTelerik.Sitefinity%3aen-US%3a03576c61-1acc-46c1-bbde-96f24ca1c910%3a993d8e92%3a5b182b17%3aaa9a9de0%3afe4b1370%3ace5f2717%3a41f6c3a7%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6955197e-6bcc-48a0-9bff-1fd043726dc6%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3abd8f85e4%3bTelerik.Sitefinity%2c+Version%3d4.0.1098.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen-US%3a03576c61-1acc-46c1-bbde-96f24ca1c910%3ab09fa3ae%3af77740f1%3a26cfb6dc%3a6e04508f%3bTelerik.Sitefinity.Resources%3aen-US%3a3dfc1080-eaf3-458e-bf48-a065bc9fddc9%3ac4ef6dcd%3a6f03d72a%3bTelerik.Sitefinity%2c+Version%3d4.0.1098.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen-US%3a03576c61-1acc-46c1-bbde-96f24ca1c910%3aaf4ad3c7%3a2ac3146e%3aab499d3b%3ae607c2f2%3a688a162a%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6955197e-6bcc-48a0-9bff-1fd043726dc6%3aed16cbdc%3a1e771326%3aa7e79140%3bTelerik.Sitefinity%2c+Version%3d4.0.1098.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen-US%3a03576c61-1acc-46c1-bbde-96f24ca1c910%3abfb08809%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6955197e-6bcc-48a0-9bff-1fd043726dc6%3a854aa0a7%3a5a6d9d23%3ae330518b%3a8e6f0d33%3a6a6d718d%3a4cacbc31
    Line: 14057

    Not sure if this is more a bug on the radeditor or SF.. but if it's radeditor's bug (for allowing such broken code to be saved and not fixing it to some extent - like adding extra " character before next > character if there is uneven number of them inside a tag), then SF still (in my opinion) has a bug that it doesn't allow the user to go back to edit to correct the mistake. 

    Workaround is to manually find the html from the sql server.. or to redo the whole page. Of course, latter isn't always an option (for example if the template is base template to some other template that is used heavily.. everything would disappear from the ones that were based on that template).

    This is with the version 4.0.1098.0 of the SF.

    P.S. below is what code will be the result when one returns to the page.. the style continues from line 28 until line 33.. in a way never catching the end tag for the block which has that broken style.

    01.<table class="rdTable">
    02.   <tr class="rdTop">
    03.      <td class="rdLeft"> </td>
    04.      <td class="rdCenter">
    05.         <div id="ctl11_C_ctl07_T" class="rdTitleBar zeControlTitlebar">
    06.            <em>Content block</em>
    07.            <ul class="rdCommands">
    08.               <li>
    09.                  <a title="Edit">
    10.                     <span class="rdEditCommand"> </span>
    11.                  </a>
    12.               </li>
    13.               <li>
    14.                  <a title="More">
    15.                     <span class="rdMoreCommand"> </span>
    16.                  </a>
    17.               </li>
    18.            </ul>
    19.         </div>
    20.      </td>
    21.      <td class="rdRight"> </td>
    22.    </tr>
    23.   <tr class="rdMiddle">
    24.      <td class="rdLeft"> </td>
    25.      <td class="rdCenter">
    26.         <div id="ctl11_C_ctl07_C" class="rdContent" perm_delete="True" perm_indexchanged="True" perm_edit="True" perm_duplicate="True" perm_permissions="True">
    27.            <div class="sfContentBlock">
    28.               <p style="display: inline;>  
    29.               </p>
    30.            </div>
    31.         </div>
    32.      </td>
    33.      <td class="rdRight"> </td>
    34.   </tr>
    35.   <tr class="rdBottom">
    36.      <td class="rdLeft"> </td>
    37.      <td class="rdCenter"> </td>
    38.      <td class="rdRight"> </td>
    39.   </tr>

    <p style="width:12px>
    a breaks </
    <p style="width:12px> breaks </p>
    <p style="width:12px> breaks </p>
    <p style="width:12px> breaks </p>
  2. Milena
    Milena avatar
    75 posts
    27 Sep 2017
    20 Jan 2011
    Link to this post
    Hello Lasse,

    I managed to reproduce the issue you are reporting. The problem has been logged at our bug tracking system (ID 105361).

    When you use ConentBlock and switch from "Html" to "Design", before you clock Save the  markup is completed as a  valid.

    Thanks for your finding!

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered