Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

MAJOR shortcoming with hyperlink button

Last post 02-23-2004, 4:40 PM by Adam. 8 replies.
Sort Posts: Previous Next
  •  02-20-2004, 6:40 AM 403

    MAJOR shortcoming with hyperlink button

    and its an issue in this very editor window that i am typing in

     

    If you type some text, then press the hyperlink button, all is well...

     

    but what about if i just want to enter a hyperlink right here where i point to >>>    

     

    people are getting confused in that they absolutely positively have to type text, then highlight, then press the hyperlink

     

    there should be some provision for "i want to add a hyperlink, so i'll just press the hyperlink button to do so"

  •  02-20-2004, 1:11 PM 404 in reply to 403

    Re: MAJOR shortcoming with hyperlink button

    I'm confused by this post... you want a hyperlink from nothing or a blank space or what?
  •  02-20-2004, 1:29 PM 406 in reply to 404

    Re: MAJOR shortcoming with hyperlink button

    be able to say the text in the hyperlink modal

     

    because people are massively confused by the three step process.....

     

    and i only make this suggestion because this is the only editor i have ever seen that doesn't allow that (and i've tested at least 30 different editors before i purchased this one)

  •  02-21-2004, 5:04 AM 411 in reply to 406

    Re: MAJOR shortcoming with hyperlink button

    you mean like in word?

     when you paste a hyper link into the document, it automatically makes that link to a link?

  •  02-21-2004, 5:24 AM 412 in reply to 411

    Re: MAJOR shortcoming with hyperlink button

    What i mean:

    take for instance Revjon's FreeTextBox (and this is just one of as i said before 20-ish WYSIWYG editors i tested)

     

    if you don't have any highlighted text, even if you don't type anything yet, and click the hyperlink button... when you enter a hyperlink, it inserts something at least....  this editor does absolutely nohting, nothing that can be seen anyways, and it's very confusing to the end user on "why didn't anything happen?"

     

    Anyways, we'll see if this image i made up last night helps explain it to my many members

  •  02-21-2004, 6:25 PM 420 in reply to 412

    Re: MAJOR shortcoming with hyperlink button

    sgilboy,

     

    You Have A Good Point. Revjon's FreeTextBox uses a built-in MSHTML function to handle insert link (CuteEditor uses this feature in the earlier version as well).

     

    Due to the limitation of this built-in function, we decided to create a pop-up windows to allow the end users specify the new windows, the link color, title.  But it does have the shortcoming as you pointed out. I will work on this tonight.

     

    By the way, I noticed  the appearance of your CuteEditor is quite nice. Can you post your code here?


    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-21-2004, 6:59 PM 422 in reply to 420

    Re: MAJOR shortcoming with hyperlink button

    sgilboy,

     

    I just wrote a fix for this. And I've tested it. It works. You can test it in our online demo.

     

    In WinIE.js, you will find the following code from line 481 to line 494.

     

    if (FSrc&&(selectedRange.htmlText != ""))

    {

         editor.document.execCommand("unlink");

         var sHTML = '<a href='

         + FSrc['href']

         + attr("target", FSrc['Target'])

         + attr("Title", FSrc['Title'])

         + attr("Title", FSrc['Title'])

         + (FSrc['linkcolor'] ? attr("style", "color:"+FSrc['linkcolor']) : "")

         + '>'

         + selectedRange.htmlText

         + '</a>';

         insertHTML(editing.EditorID,sHTML);

    }

     

    Please replace it with the following code:

     

    if (FSrc)

    {

          var temp;

          if (selectedRange.htmlText != "")

               temp = selectedRange.htmlText;

          else

               temp = FSrc['href'];

          editor.document.execCommand("unlink");

          var sHTML = '<a href='

          + FSrc['href']

          + attr("target", FSrc['Target'])

          + attr("Title", FSrc['Title'])

          + attr("Title", FSrc['Title'])

          + (FSrc['linkcolor'] ? attr("style", "color:"+FSrc['linkcolor']) : "")

          + '>'

         + temp

         + '</a>';

         insertHTML(editing.EditorID,sHTML);

     }

     

    Thanks for pointing it out. I will add it to the next release.


    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-21-2004, 7:32 PM 423 in reply to 422

    Re: MAJOR shortcoming with hyperlink button

    excellent.......  see thing is.. my site isn't full of the most internet savy people.. they are car people  :)

     

    My setup code for "forum use", the ".Template" addition was an excellenet excellent addition to this editor.. makes it that much better

     

    Private Sub SetUpEditBox()

          Dim strTemp As String = ""

          strTemp += "Cut,Copy,Paste,PasteText,Separator," & _

                  "Bold,Italic,Underline,FontColor,HighLight,Hr,Separator," & _

                  "Emotion,InsertTable,ImageGalleryByBrowsing,Link,Unlink,RemoveFormat"

          EditBox.Width = System.Web.UI.WebControls.Unit.Percentage(100)

          EditBox.Template = strTemp

          EditBox.ShowLogo = False

          EditBox.ShowHtmlMode = CheckThisUserRole("Level3")

          If UserHasPersonalImageDirectory() Then

                EditBox.AllowUpload = True

                EditBox.ImageGalleryPath = "/images/users/" & GetMyUsername.toLower()

          Else

                EditBox.AllowUpload = False

          End If

          EditBox.DropDownListStyle = "font-family: verdana; font-size: 10px;"
    End Sub

     

     

    Adam, any chance you may point out where a little fix can be made to filter out directories like "_vti_cnf" in the image gallery stuff?  or is that inside the DLL  (i could look but its a heck of a lot of code, lol)

  •  02-23-2004, 4:40 PM 433 in reply to 423

    Re: MAJOR shortcoming with hyperlink button

    sgilboy,

     

    Thanks for the code. Can you post your style sheet as well?

     

    Adam, any chance you may point out where a little fix can be made to filter out directories like "_vti_cnf" in the image gallery stuff?  or is that inside the DLL  (i could look but its a heck of a lot of code, lol)

     

    That's inside the DLL.  You have a good point. All those directories like "_vti_cnf" should be filtered out in the image gallery. I will add this to the next release.


    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

View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.