Please allow placeholder hyperlinks
-
Sorry, I am not certain whether the following is a TinyMCE Advanced issue, or a TinyMCE issue.
On my website I have a list of documents that will become available over time. Each item in the list has a hyperlink to the respective document. Something simple as:
<a class="my-button" href="https://something">link</a>
Documents that are not yet present but will become available later, I still want to include in the list to offer a complete overview, leaving out the href:
<a class="my-button">link</a>
In HTML5 this is perfectly all right; it is called a placeholder hyperlink. See for example this document.TinyMCE cannot handle this, but TinyMCE Advanced can, to some extent: When I enable the “Link (replaces the Insert/Edit Link dialog)” feature, I can add a href (“URL”) to a hyperlink without href that I created earlier with the text editor (the class attribute disappears, unfortunately).
However, TinyMCE Advanced does not allow me to create a hyperlink element without specifying a href, or to remove the href from an existing hyperlink. In both cases the
<a>
element just disappears.Something else is that TinyMCE Advanced indicates that such placeholder hyperlinks are anchors which is clearly not correct, in my case, because no ids have been specified.
- The topic ‘Please allow placeholder hyperlinks’ is closed to new replies.