#10 open
bricker

Adds the script tag in seemingly random places.

Reported by bricker | November 29th, 2009 @ 08:06 PM

the include_tinymce_if_needed method seems to be sticking in the "script" tag wherever it feels like:

<div id="conten&lt;script type=" text="" javascript"="" src="http://thebirn.com/javascripts/tiny_mce/themes/advanced/langs/en.js?1259377024">t"&gt;

A refresh usually fixes it, but this happens on probably one out of every 4 page loads, and it's always in a different place.

Comments and changes to this ticket

  • bricker

    bricker November 29th, 2009 @ 08:08 PM

    • Tag cleared.

    Sorry, code didn't work:

    <div id="conten&lt;script type=" text="" javascript"="" src="http://thebirn.com/javascripts/tiny_mce/themes/advanced/langs/en.js?1259377024">t"&gt;
    
  • Ryan Lundie

    Ryan Lundie January 19th, 2010 @ 06:36 AM

    Hi Kieran,

    I am actually having the same issue. It is happening in any webkit based browser, and it is completely random. When it does it and I refresh it usually just goes back to normal without any problems.

    Is there anything on my end that can be done to provide you with more information?

    Thanks

    Ryan Lundie

  • Mr Munchkin

    Mr Munchkin March 31st, 2010 @ 02:21 AM

    Hi Kieran,

    Im having this problem with one of our apps, its our first outing into the world of ruby also - the bug appears in all browsers (ie, safari, chrome, mozilla, opera - on both mac and win) that we have installed on our systems.

    Controler:

      layout :set_layout
      
      uses_tiny_mce(:options => {:theme => 'advanced', :theme_advanced_toolbar_location => "top",  :theme_advanced_toolbar_align => "left",
        :theme_advanced_buttons1 => %w{bold italic underline bullist numlist},
        :theme_advanced_buttons2 => [],  :theme_advanced_buttons3 => []},
        :only => [:index, :new, :create, :edit, :update, :preview, :contact_us])
    

    View:

    <%= load_stylesheet %>
    <%= javascript_include_tag :defaults %>
    <%= include_tiny_mce_if_needed %>
                            
    </head>
    <body class="content" id="minisite">
    <div id="horizon"><div id="wrapper">
                <a id="top" class="target"></a>
                <div id="ms-header">
                            <div class="container">
                                        <h1 class="logo"><%= link_to @dealer.user_company_name, minisite_home_page_url(@dealer.id) %></h1>
                                        <div id="dealer-info">
                                                    <p><strong><%= @dealer.user_company_name %></strong>  us on: <%= @dealer_company_details.phone rescue "N/A" %></p>
                                        </div>
                            </div>
                </div>
    </div></div>
    

    Output Should Be:

    <link href="/stylesheets/minisite/dealer_styles/style_17.css?1269880214" media="screen" rel="stylesheet" type="text/css" />
    <!--[if lte IE 7]><link href="/stylesheets/minisite/ie7.css?1268895758" media="all" rel="stylesheet" type="text/css" /><![endif]-->
    
            
    <script src="/javascripts/prototype.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/effects.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/dragdrop.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/controls.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/application.js?1268895758" type="text/javascript"></script>
            
            
    </head>
    <body class="content" id="tt-minisite">
    <div id="horizon"><div id="wrapper">
    <a id="top" class="target"></a>
        <div id="ms-header">
            <div class="container">
                <h1 class="logo"><a href="http://mysite.co.uk/17">######</a></h1>
                <div id="dealer-info">
                <p><strong>######</strong>
                    Call us on: ######</p>
                </div>
            </div>
        </div>
    </div></div>
    

    But every 4 or 5 refreshes we get something like...

    
    <link href="/stylesheets/minisite/dealer_styles/style_17.css?1269880214" media="screen" rel="stylesheet" type="text/css" />
    <!--[if lte IE 7]><link href="/stylesheets/minisite/ie7.css?1268895758" media="all" rel="stylesheet" type="text/css" /><![endif]-->
    
            
    <script src="/javascripts/prototype.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/effects.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/dragdrop.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/controls.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/application.js?1268895758" type="text/javascript"></script>
            
            
    </head>
    <body class="content" id="tt-minisite">
    <div id="horizon"><div id="wrapper">
    <a id="top" class="target"></a>
        <div id="ms-head<script type="" type="" text="" javascript="" src="http://www.tractortrader.co.uk/javascripts/tiny_mce/themes/advanced/langs/en.js126889578">er">
            <div class="container">
                <h1 class="logo"><a href="http://mysite.co.uk/17">######</a></h1>
                <div id="dealer-info">
                <p><strong>######</strong>
                    Call us on: ######</p>
                </div>
            </div>
        </div>
    </div></div>
    

    Or Even...

    <link href="/stylesheets/minisite/dealer_styles/style_17.css?1269880214" media="screen" rel="stylesheet" type="text/css" />
    <!--[if lte IE 7]><link href="/stylesheets/minisite/ie7.css?1268895758" media="all" rel="stylesheet" type="text/css" /><![endif]-->
    
            
    <script src="/javascripts/prototype.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/effects.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/dragdrop.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/controls.js?1268895758" type="text/javascript"></script>
    <script src="/javascripts/application.js?1268895758" type="text/javascript"></script>
            
            
    </head>
    <body class="content" id="tt-minisite">
    <div id="horizon"><div id="wrapper">
    <a id="top" class="target"></a>
        <div id="ms-header">
            <div <script type="" type="" text="" javascript="" src="http://www.tractortrader.co.uk/javascripts/tiny_mce/themes/advanced/langs/en.js126889578">
     class="container">
                <h1 class="logo"><a href="http://mysite.co.uk/17">######</a></h1>
                <div id="dealer-info">
                <p><strong>######</strong>
                    Call us on: ######</p>
                </div>
            </div>
        </div>
    </div></div>
    

    The Problem Line:

    <script type="" type="" text="" javascript="" src="http://www.tractortrader.co.uk/javascripts/tiny_mce/themes/advanced/langs/en.js126889578">
    

    As you can see the script line seems to randomly skip into the hardcoded areas of the html and we don’t understand why. I hope that this explanation helps you reslove this problem for us and others...

    Regards

    Gary

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Ruby on Rails plugin that allows easy implementation of the TinyMCE editor into your applications.

People watching this ticket

Pages