Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Hyperlink in RichTextEditor

    Is there a way to insert a hyperlink in the SmartGWT RichTextEditor?

    This functionality exists in other editors like FCKeditor and GWT, but we would like to use the SmartGWT RichTextEditor if at all possible.

    Thanks.

    #2
    This does not yet exist as a documented and supported feature, however, try adding the value "insertControls" to the array passed to setControlGroups() - this will add a simple feature to create a link.

    Note that the fact that it's undocumented means the API may change - consider feature sponsorship to make it permanent.

    Comment


      #3
      Originally posted by Isomorphic View Post
      This does not yet exist as a documented and supported feature, however, try adding the value "insertControls" to the array passed to setControlGroups() - this will add a simple feature to create a link.

      Note that the fact that it's undocumented means the API may change - consider feature sponsorship to make it permanent.
      SmartClient Version: v10.0p_2015-09-08/Enterprise Deployment (built 2015-09-08)

      ​Hello, I see that this feature it's still undocumented. Do you plan to develop this feature for future releases of SmartClient (10.1 or 11)?

      Comment


        #4
        We are also interested in using the "insertContols" hyperlink editor. It would be nice if after you created the link, you would be able to go back and edit it. That or have more controls like a "test link" to see if you composed it correctly and a text box for entering, or modifying the test that is being linked.

        Comment


          #5
          Hi,
          Is there any change with respect to inserting a hyperlink for a RichTextItem?
          I do see some references to hyperlink in the RichTextEditor, however, I don't quite understand how that all comes together, for example, "The prompt for the built-in {@link com.smartgwt.client.types.ControlName hyperlink} control." I don't even see a hyperlink ControlName.
          Thank you

          Comment


            #6
            Hi guys, right now, this remains an undocumented and incomplete feature. The link to "ControlName" in the docs is just a matter of partially written, internal docs leaking into JavaDoc due to how our SmartGWT generator tools work, and is not an indication that the feature is supported. We'll get rid of that to avoid confusion.

            Bear in mind that, if it were simple to just implement link support, we would. Unfortunately, HTML editing is a thicket of browser bugs, including the need to use different HTML in different browsers (with changes over time for new versions!), bogus security errors thrown by certain browsers, etc.. definitely one of the worst areas of bugs (keyboard focus handling might be worse).

            So adding the feature is seemingly easy but could lead to a full week or more effort trying to figure out how to get around specific browser bugs, which tends to be harder for us because we support core features other third-party HTML editors don't even support (full ARIA-compliant accessibility, full skinning, full drag events, etc).

            That's why it's still waiting for a Feature Sponsorship, and why we continue to recommend a wrapped CKEditor if you need more features than our basic RichTextEditor supplies.

            But we have two organizations in this thread, so perhaps between the two of you, you can cover our costs of development. Just let us know, and we can try to coordinate that possibility!

            Comment


              #7
              Also: docs have been corrected so that there are no more confusing references to unsupported features (was already true in 13.0, now backported).

              Comment


                #8
                Thank you for the clarification.

                Comment

                Working...
                X