Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Trevor Loader 199 posts 256 karma points
    Jul 27, 2011 @ 02:51
    Trevor Loader
    0

    Can't find brush error

    I've just downloaded 1.0.1 and installed it as per instructions.  Everything appears to work, but the text is not highlighted in TinyMCE (not sure is its supposed to or not) and when you navigate to a page that outputs the RTE contents, this error is thrown.

    (hmmmm image upload doesn't appear to be working in the forum.)

    The error is "Can't find brush for: xml".  I've tried other types like css and get the same error "Can't find brush for: css" etc.

    I'm running Umbraco 4.7.0.

    Thanks.Trevor

     

  • Peter Gregory 404 posts 1563 karma points MVP 2x admin c-trib
    Jul 27, 2011 @ 08:27
    Peter Gregory
    0

    Hey Trevor

    Looks like you tried to upload a tiff file.

  • Ove Andersen 435 posts 1536 karma points c-trib
    Jul 27, 2011 @ 09:27
    Ove Andersen
    0

    The text is not supposed to be highlighted in TinyMCE, only on the webpage.

    It works fine here. Can you take a look and see if the following folder exists on your installation?

    umbraco_client\tinymce3\plugins\syntaxhighlighter\scripts\brushes

     Also, can you post the <head> section of the generated html for your page?

  • Trevor Loader 199 posts 256 karma points
    Jul 27, 2011 @ 10:06
    Trevor Loader
    0

    Hi Ove,

    Thought it might not highlight in the backend.

    Yes that folder is there along with the all the js files inside it.  Here is the head from the page source...note the weird extra title tag at the end that is nowhere in the template!

        <head>
        <title>blah</title>
            <meta name="keywords" content="blah" />
            <meta name="description" content="blah" />
            <script src="/scripts/jquery-1.6.1.min.js" type="text/javascript"></script>
            <script src="/scripts/modernizr-2.0.4.js" type="text/javascript"></script>
            <script src="/scripts/syntaxhighlighter/shCore.js" type="text/javascript"></script>
            <link type="text/css" rel="Stylesheet" media="screen" href="/css/uBlogsy.css" /><link rel="stylesheet" type="text/css" href="DependencyHandler.axd?s=L3VtYnJhY29fY2xpZW50L3RpbnltY2UzL3BsdWdpbnMvc3ludGF4aGlnaGxpZ2h0ZXIvc3R5bGVzL2NvcmUvc2hDb3JlLmNzczsvdW1icmFjb19jbGllbnQvdGlueW1jZTMvcGx1Z2lucy9zeW50YXhoaWdobGlnaHRlci9zdHlsZXMvdGhlbWVzL3NoVGhlbWVEZWZhdWx0LmNzczs%3d&amp;t=Css&amp;cdv=1" /><script type="text/javascript" src="DependencyHandler.axd?s=L3VtYnJhY29fY2xpZW50L3RpbnltY2UzL3BsdWdpbnMvc3ludGF4aGlnaGxpZ2h0ZXIvc2NyaXB0cy9jb3JlL3NoQ29yZS5qczsvdW1icmFjb19jbGllbnQvdGlueW1jZTMvcGx1Z2lucy9zeW50YXhoaWdobGlnaHRlci9zY3JpcHRzL2JydXNoZXMvc2hCcnVzaFhtbC5qczsvdW1icmFjb19jbGllbnQvdGlueW1jZTMvcGx1Z2lucy9zeW50YXhoaWdobGlnaHRlci9zY3JpcHRzL2NvcmUvc2hBdXRvbG9hZGVyLmpzOy91bWJyYWNvX2NsaWVudC90aW55bWNlMy9wbHVnaW5zL3N5bnRheGhpZ2hsaWdodGVyL3NjcmlwdHMvY29yZS9zaFVtYnJhY29Mb2FkZXIubWluLmpzOw%3d%3d&amp;t=Javascript&amp;cdv=1"></script><title>
    
    </title></head>

    I can also see that the /scripts/syntaxlighter/* directory is there too.  

     

  • Ove Andersen 435 posts 1536 karma points c-trib
    Jul 27, 2011 @ 10:18
    Ove Andersen
    0

    Can you also post the <head> section of the template?

  • Trevor Loader 199 posts 256 karma points
    Jul 27, 2011 @ 10:30
    Trevor Loader
    0

    Ahhhhh...figured it out!

    I had tried a different approach to syntax highlighting and had left in a call to an old js file in the template.  Removed the below line and it now works.  Sorry for being a plonker!

    <scriptsrc="/scripts/syntaxhighlighter/shCore.js"type="text/javascript"></script>
Please Sign in or register to post replies

Write your reply to:

Draft