Copied to clipboard

Flag this post as spam?

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


  • daniel_sbbs 33 posts 52 karma points
    Jan 13, 2010 @ 11:29
    daniel_sbbs
    0

    Problem using tinymce3 on usercontrol

    Updated from 3.0.5 to 4.0.3 and had on a page a usercontol who had the tinymce implemented.

    But after the update I can't get the advImage to work, It won't get the files listed in Umbraco/media

    This is the script we used in 3.0.5 (tiny2):

    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "exact",
    theme : "advanced",
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright, justifyfull,|,umbracoformatselector,|,undo,redo,|,code",
    theme_advanced_buttons2 : "link,unlink,anchor,|,image,|,cut,copy,paste,pasteword,|,bullist,numlist,|,outdent,indent,|,table",
    theme_advanced_buttons3 : "",
    content_css : "/umbraco/../css/SVinfoMaster.css,/umbraco/../css/SVinfoTypes.css,",
    theme_advanced_styles : "Huvudrubrik Röd=.huvudrubrik;Underrubrik Röd=.underrubrik;Ingress=.ingress;Brödtext=.content;Tabelltext=.tabelltext",
    theme_advanced_text_colors: "000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF,CC3300,333333,666666,999999,CCCCCC",
    theme_advanced_background_colors: "000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF,CC3300,333333,666666,999999,CCCCCC",
    umbracoAdvancedMode : "true",
    plugins : "contextmenu,advimage,umbracomacro,noneditable,table,advlink,paste",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_resizing : "true",
    theme_advanced_resize_horizontal : "false",
    relative_urls : "false",
    elements : "<%= EditorId %>",
    umbracoPath: "/umbraco",
    force_br_newlines : true});
    </script>

     

    In the umbraco implementations notes in the tinymce3 folder the txt files says:

    4. Update advLink and advImage to point to the Umbraco modals instead of the tinyMCE ones:

    Image:
        file: tinyMCE.activeEditor.getParam('umbraco_path') + '/plugins/tinymce3/insertImage.aspx',
        width: 575 + parseInt(ed.getLang('advimage.delta_width', 0)),
        height: 585 + parseInt(ed.getLang('advimage.delta_height', 0)),

     

    But where do you do that?
    Has anybody got a working sample of using tinymce3 on a usercontrol?

  • daniel_sbbs 33 posts 52 karma points
    Jan 13, 2010 @ 16:03
    daniel_sbbs
    0

    no one?

  • daniel_sbbs 33 posts 52 karma points
    Jan 14, 2010 @ 15:03
    daniel_sbbs
    0

    Has no one implemented the new tiny (3) on a usercontrol and got it working with umbraco?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jan 18, 2010 @ 10:30
    Sebastiaan Janssen
    0

    This forum uses tinyMCE to create posts and replies. Maybe you could have a look at the uForum package to see how the link editor is implemented, and derive from there?

  • daniel_sbbs 33 posts 52 karma points
    Jan 18, 2010 @ 10:45
    daniel_sbbs
    0

    Thx for the tip, will check it out.

  • daniel_sbbs 33 posts 52 karma points
    Jan 18, 2010 @ 10:53
    daniel_sbbs
    0

    Nope not what I was looking for, creating new nodes in the umbraco content tree has never been a problem instead it is the advImage and advLink functions that I want to be able to fetch data from umbraco when using the TinyMCE on a usercontrol.

    When I click the image button on the TinyMCE I can list the files in umbraco, but when selecting an image for inserting nothing happens.

Please Sign in or register to post replies

Write your reply to:

Draft