API issues / PasteHtml aka insert HTML

Last post 02-13-2009, 4:17 PM by Adam. 16 replies.
Sort Posts: Previous Next
  •  02-09-2009, 8:55 PM 48551

    API issues / PasteHtml aka insert HTML

    Adam,
     
    using your demo page you'll see my issue
     
     
    when you select individual cells in your example table and click "insert html" which I believe runs the "PasteHTML" function - you'll notice sometimes the text goes into the right cell and sometimes it goes into an adjacent cell - try to put your cursor into the cell with the little picture of the girl and click insert HTML the html almost always pastes into the adjacent cell
     
    any fix for this?
     
    Thanks,
    Pat
  •  02-09-2009, 8:59 PM 48552 in reply to 48551

    Re: API issues / PasteHtml aka insert HTML

    as I look at this a little bit closer it seems what is happening is that when your cursor is at the very end of a cell it moves the pasted html into the next adjacent object.  Any way to avoid this from happening?
  •  02-09-2009, 9:05 PM 48553 in reply to 48552

    Re: API issues / PasteHtml aka insert HTML

    This issue is resolved in the coming new version which will be released within this week.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-09-2009, 9:42 PM 48554 in reply to 48553

    Re: API issues / PasteHtml aka insert HTML

    I love you
     
    in the very platonic sense of the word
  •  02-09-2009, 9:43 PM 48555 in reply to 48554

    Re: API issues / PasteHtml aka insert HTML

    will you make an announcement here (in the forums) when you fix this bug - we will need a new DLL or just a new copy of the script files?
  •  02-10-2009, 8:47 AM 48575 in reply to 48555

    Re: API issues / PasteHtml aka insert HTML

    Adam,
     
    It also appears that in Mozilla and IE that you are unable to select divs that do not have a width set explicitedly - aka width: auto; not allwoed to be selected. width:500px; or width:100%; works fine
     
    would love to be able to select divs (and maybe this bug occurs for other objects too without a width assigned) that have no width assinged.
     
    Thanks as always for your support.
  •  02-12-2009, 1:28 PM 48681 in reply to 48555

    Re: API issues / PasteHtml aka insert HTML

  •  02-12-2009, 1:32 PM 48684 in reply to 48575

    Re: API issues / PasteHtml aka insert HTML

    oompah:
    Adam,
     
    It also appears that in Mozilla and IE that you are unable to select divs that do not have a width set explicitedly - aka width: auto; not allwoed to be selected. width:500px; or width:100%; works fine
     
    would love to be able to select divs (and maybe this bug occurs for other objects too without a width assigned) that have no width assinged.
     
    Thanks as always for your support.
     
    has this been addressed as well ?
  •  02-12-2009, 1:58 PM 48696 in reply to 48684

    Re: API issues / PasteHtml aka insert HTML

    Adam seeing some weird results here with the new v6.3 build
     
    first off, when attempting to browse the image gallery I am seeing a distorted window (on IE 8 and Mozilla 3) see image below
     
     
     
    Also the images gallery is not setting correctly - this worked fine prior to the new upgrade.  The image gallery path (root) should be the "pics" folder seen in your popup window, but now it will not set that correctly
     
    please help - thanks,
    Pat
  •  02-12-2009, 2:08 PM 48699 in reply to 48696

    Re: API issues / PasteHtml aka insert HTML

    1. if(!window.editorconstant)window.editorconstant={};   
    2.   
    3. editorconstant.KEYDOWN_NOTIFYCHANGEDELAY=2000   
    4.   
    5. // When creating a table using the Wizard, the following default attributes apply.   
    6. editorconstant._CreateEditingTableStyle = "<table border='0' cellspacing='2' cellpadding='2' width='500'>";   
    7. // When creating a new div box, the following default attributes apply.   
    8. editorconstant._BoxFormattingStyle = "border: solid 1px #666666;";   
    9. editorconstant._syntaxHighlighterDialogFeature = "dialogWidth:435px;dialogHeight:370px;resizable:0";   
    10. // Default window ornaments for the ColorPicker dialog   
    11. editorconstant._colorpickerDialogFeature = "dialogWidth:500px;dialogHeight:420px;resizable:0";   
    12. // Default window ornaments for the Clean dialog   
    13. editorconstant._cleanDialogFeature = "dialogWidth:235px;dialogHeight:270px;resizable:0";   
    14. // Default window ornaments for the Preview dialog   
    15. editorconstant._previewDialogFeature = "dialogWidth:640px;dialogHeight:480px;resizable:0";   
    16. // Default window ornaments for the Anchor dialog   
    17. editorconstant._anchorDialogFeature = "resizable:0;dialogWidth:320px;dialogHeight:230px;";   
    18. // Default window ornaments for the Link dialog   
    19. editorconstant._linkDialogFeature = "resizable:0;dialogWidth:460px;dialogHeight:214px;";   
    20. // Default window ornaments for the Char dialog   
    21. editorconstant._charDialogFeature = "resizable:0;dialogWidth:480px;dialogHeight:360px;";   
    22. // Default window ornaments for the find dialog   
    23. editorconstant._findDialogFeature = "resizable:0;dialogWidth:385px;dialogHeight:150px;";   
    24. // Default window ornaments for the Emotion dialog   
    25. editorconstant._emotionDialogFeature = "resizable:0;dialogWidth:280px;dialogHeight:300px;";   
    26. // Default window ornaments for the Spell dialog   
    27. editorconstant._spellDialogFeature = "resizable:0;dialogWidth:400px;dialogHeight:300px;";   
    28. // Default window ornaments for the Template dialog   
    29. editorconstant._templateDialogFeature = "dialogWidth:660px;dialogHeight:430px;resizable:0";   
    30. // Default window ornaments for the Create Template dialog   
    31. editorconstant._createtemplateDialogFeature = "dialogWidth:760px;dialogHeight:385px;help:no;scroll:no;status:no;resizable:0;";   
    32. // Default window ornaments for the Document dialog   
    33. editorconstant._documentDialogFeature = "dialogWidth:600px;dialogHeight:480px;resizable:0";   
    34. // Default window ornaments for the gallery dialog   
    35. editorconstant._galleryDialogFeature = "dialogWidth:564px;dialogHeight:580px;resizable:0";   
    36. // Default window ornaments for the image dialog   
    37. editorconstant._imageDialogFeature = "dialogWidth:620px;dialogHeight:540px;resizable:0";   
    38. // Default window ornaments for the image map dialog   
    39. editorconstant._imagemapDialogFeature = "dialogWidth:610px;dialogHeight:370px;resizable:0";   
    40. // Default window ornaments for the media dialog   
    41. editorconstant._mediaDialogFeature = "dialogWidth:580px;dialogHeight:470px;resizable:0";   
    42. // Default window ornaments for the youtube dialog   
    43. editorconstant._youtubeDialogFeature = "dialogWidth:520px;dialogHeight:560px;resizable:0";   
    44. // Default window ornaments for the flash dialog   
    45. editorconstant._flashDialogFeature = "dialogWidth:580px;dialogHeight:520px;resizable:0";   
    46. // Default window ornaments for the page properties dialog   
    47. editorconstant._pageDialogFeature = "dialogWidth:490px;dialogHeight:440px;resizable:0";   
    48. // Default window ornaments for the Tag dialog   
    49. editorconstant._tagDialogFeature = "resizable:0;dialogWidth:470px;dialogHeight:500px;";   
    50. // Default window ornaments for the help    
    51. editorconstant._helpDialogFeature = "dialogWidth:760px;dialogHeight:450px;resizable:0";   
    52. // Default window ornaments for the Rule dialog   
    53. editorconstant._RuleDialogFeature = "resizable:0;dialogWidth:340px;dialogHeight:210px;";   
    54. // Default style in the source view    
    55. editorconstant._editorSourceStyle = "background:#ffffff;margin:0;padding:0;color:black;text-align:left;";   
    56. // Default window ornaments for the paste dialog   
    57. editorconstant._pastetextDialogFeature = "resizable:0;dialogWidth:450px;dialogHeight:400px;";   
    58. // Default window ornaments for the universal keyboard dialog   
    59. editorconstant._keyboardDialogFeature = "resizable:0;dialogWidth:415px;dialogHeight:310px;";   
    60. editorconstant.layerdefaultstyle = "position:absolute;width:104px; height: 104px";   
    61. editorconstant.ToggleBorderStyle='1px dotted #000000';   
    62. editorconstant.DisableCtrlZ = false;   
    63. //By default, when users double click a control, a tag property dialog will open. Set it to true if you want to disable this feature.   
    64. editorconstant.DisableDoubleClickEvent = false;    
    65. editorconstant.AbsolutePositionValue='absolute'//'relative';   
    66.   
    67. //set to window for compatible   
    68. for(var p in editorconstant)window[p]=editorconstant[p];  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-12-2009, 2:10 PM 48701 in reply to 48696

    Re: API issues / PasteHtml aka insert HTML

    We are investigating this issue. For the time being, please open Constant.js fle and copy/paste the following code:
     
    if(!window.editorconstant)window.editorconstant={};

    editorconstant.KEYDOWN_NOTIFYCHANGEDELAY=2000

    // When creating a table using the Wizard, the following default attributes apply.
    editorconstant._CreateEditingTableStyle = "<table border='0' cellspacing='2' cellpadding='2' width='500'>";
    // When creating a new div box, the following default attributes apply.
    editorconstant._BoxFormattingStyle = "border: solid 1px #666666;";
    editorconstant._syntaxHighlighterDialogFeature = "dialogWidth:435px;dialogHeight:370px;resizable:0";
    // Default window ornaments for the ColorPicker dialog
    editorconstant._colorpickerDialogFeature = "dialogWidth:500px;dialogHeight:420px;resizable:0";
    // Default window ornaments for the Clean dialog
    editorconstant._cleanDialogFeature = "dialogWidth:235px;dialogHeight:270px;resizable:0";
    // Default window ornaments for the Preview dialog
    editorconstant._previewDialogFeature = "dialogWidth:640px;dialogHeight:480px;resizable:0";
    // Default window ornaments for the Anchor dialog
    editorconstant._anchorDialogFeature = "resizable:0;dialogWidth:320px;dialogHeight:230px;";
    // Default window ornaments for the Link dialog
    editorconstant._linkDialogFeature = "resizable:0;dialogWidth:460px;dialogHeight:214px;";
    // Default window ornaments for the Char dialog
    editorconstant._charDialogFeature = "resizable:0;dialogWidth:480px;dialogHeight:360px;";
    // Default window ornaments for the find dialog
    editorconstant._findDialogFeature = "resizable:0;dialogWidth:385px;dialogHeight:150px;";
    // Default window ornaments for the Emotion dialog
    editorconstant._emotionDialogFeature = "resizable:0;dialogWidth:280px;dialogHeight:300px;";
    // Default window ornaments for the Spell dialog
    editorconstant._spellDialogFeature = "resizable:0;dialogWidth:400px;dialogHeight:300px;";
    // Default window ornaments for the Template dialog
    editorconstant._templateDialogFeature = "dialogWidth:660px;dialogHeight:430px;resizable:0";
    // Default window ornaments for the Create Template dialog
    editorconstant._createtemplateDialogFeature = "dialogWidth:760px;dialogHeight:385px;help:no;scroll:no;status:no;resizable:0;";
    // Default window ornaments for the Document dialog
    editorconstant._documentDialogFeature = "dialogWidth:600px;dialogHeight:480px;resizable:0";
    // Default window ornaments for the gallery dialog
    editorconstant._galleryDialogFeature = "dialogWidth:564px;dialogHeight:580px;resizable:0";
    // Default window ornaments for the image dialog
    editorconstant._imageDialogFeature = "dialogWidth:620px;dialogHeight:540px;resizable:0";
    // Default window ornaments for the image map dialog
    editorconstant._imagemapDialogFeature = "dialogWidth:610px;dialogHeight:370px;resizable:0";
    // Default window ornaments for the media dialog
    editorconstant._mediaDialogFeature = "dialogWidth:580px;dialogHeight:470px;resizable:0";
    // Default window ornaments for the youtube dialog
    editorconstant._youtubeDialogFeature = "dialogWidth:520px;dialogHeight:560px;resizable:0";
    // Default window ornaments for the flash dialog
    editorconstant._flashDialogFeature = "dialogWidth:580px;dialogHeight:520px;resizable:0";
    // Default window ornaments for the page properties dialog
    editorconstant._pageDialogFeature = "dialogWidth:490px;dialogHeight:440px;resizable:0";
    // Default window ornaments for the Tag dialog
    editorconstant._tagDialogFeature = "resizable:0;dialogWidth:470px;dialogHeight:500px;";
    // Default window ornaments for the help
    editorconstant._helpDialogFeature = "dialogWidth:760px;dialogHeight:450px;resizable:0";
    // Default window ornaments for the Rule dialog
    editorconstant._RuleDialogFeature = "resizable:0;dialogWidth:340px;dialogHeight:210px;";
    // Default style in the source view
    editorconstant._editorSourceStyle = "background:#ffffff;margin:0;padding:0;color:black;text-align:left;";
    // Default window ornaments for the paste dialog
    editorconstant._pastetextDialogFeature = "resizable:0;dialogWidth:450px;dialogHeight:400px;";
    // Default window ornaments for the universal keyboard dialog
    editorconstant._keyboardDialogFeature = "resizable:0;dialogWidth:415px;dialogHeight:310px;";
    editorconstant.layerdefaultstyle = "position:absolute;width:104px; height: 104px";
    editorconstant.ToggleBorderStyle='1px dotted #000000';
    editorconstant.DisableCtrlZ = false;
    //By default, when users double click a control, a tag property dialog will open. Set it to true if you want to disable this feature.
    editorconstant.DisableDoubleClickEvent = false;
    editorconstant.AbsolutePositionValue='absolute'; //'relative';

    //set to window for compatible
    for(var p in editorconstant)window[p]=editorconstant[p];


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-12-2009, 2:38 PM 48704 in reply to 48701

    Re: API issues / PasteHtml aka insert HTML

    that fixed one problem - there's a broken border at the top of the popup window but it's visiblr again.
     
    The gallerypath is not setting correctly now though
     
    using this command
     
    cute.SetSecurityImageGalleryPath("~/uploads/pics")
     
    used to set the "pics" folder to open - I also tried
     
    cute.SetSecurityImageGalleryPath("~/uploads/pics/")
     
    but the image editor opens to the ~/uploads  no matter what I do
  •  02-12-2009, 2:40 PM 48707 in reply to 48704

    Re: API issues / PasteHtml aka insert HTML

  •  02-12-2009, 2:45 PM 48708 in reply to 48704

    Re: API issues / PasteHtml aka insert HTML

    also when I insert an image now it deletes any existing content in the cuteeditor
     
    here's a live sample site you can look at
     
    this build has your new constant.js file update
     
    oompah says: 15:29:34
    oompah says: 15:29:40
    login: test / test
    oompah says: 15:29:50
    click the "home" menu item
    oompah says: 15:29:59
    then click the image insert icon
  •  02-12-2009, 2:48 PM 48709 in reply to 48707

    Re: API issues / PasteHtml aka insert HTML

    Adam:
    Try
     
    cute.SetSecurityImageBrowserPath("~/uploads/pics")
     
    that worked thank you
     
    inserting an image though still overwrites an the contents of the cute editor box - any thoughts?
  •  02-12-2009, 2:50 PM 48710 in reply to 48709

    Re: API issues / PasteHtml aka insert HTML

    it seems like when I insert an image it highlights the entire cuteeditor box in a quick flash and the image replaces all the old content
  •  02-13-2009, 4:17 PM 48770 in reply to 48710

    Re: API issues / PasteHtml aka insert HTML

View as RSS news feed in XML