You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a text area with the ability to add web content (like a link, image or video). For convenience, if URL input is detected, show a preview along with the option to discard it.
The text was updated successfully, but these errors were encountered:
A temporary workaround to prevent a link preview is to insert a single space before the URL (currently a URL is only recognized at the very beginning of the text).
Previews
--------
Web :ref:`Resource` previews.
.. http:get:: /api/previews/(url)
Get a description of the web :ref:`Resource` at *url*.
Client draft:
/** * Input for text and web :ref:`Resource` content. * * For convenience, when a URL is entered, the web resource is attached automatically. */micro.compoments.contentinput.ContentInputElement=classextendsHTMLElement{/** * Current value as object ``{text, resource}``. * * *text* is the text and *resource* the web :ref:`Resource` content. May both be ``null``. */getvalueAsObject(){}/** See :attr:`HTMLInputElement.required`. */getrequired(){}/** See :attr:`HTMLInputElement.placeholder`. */getplaceholder(){}/** Attach the web resource at *url*. */asyncattach(url){}};/** * Extension for an input that detects when a URL is entered. * * .. attribute:: input * * Extended :class:`HTMLInputElement` or :class:`HTMLTextAreaElement`. * * .. describe:: onurlinput * * Event handler for ``urlinput``, dispatched when a *url* is entered. */micro.compoments.contentinput.URLDetection=class{constructor(input){}};
Provide a text area with the ability to add web content (like a link, image or video). For convenience, if URL input is detected, show a preview along with the option to discard it.
The text was updated successfully, but these errors were encountered: