Confiforms wyswyg editor for automatic detection of URL
Asked by Jay Moon:

I love everything about confiforms and I use it for many workflow in my team. One biggest trouble is wyswyg editor. In confluence page, like email tools, note app, it automatically detect URL and create link. This is not the case for wyswyg editor. I know I can use editor to attach links for a given URL text but this is cumbersome. When I copy and paste texts from other tools, wyswyg takes them correctly, maintaining format. But when typing directly in wyswyg editor, it doesn't. HTML editing within wyswyg editor can do all but this is not the efficient way. I am really hoping confluence style editor available for confiforms. There are many occasions I have to drop confiforms in the flow due to this one problem.


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Jay Moon](/t5/user/viewprofilepage/user-id/5460293)

Since version [3.9.0](https://wiki.vertuna.com/display/CONFIFORMS/Release+Notes#ReleaseNotes-Version3.9.0) of ConfiForms we have introduced a new WYSIWYG editor with support for auto-links, basic tables and more

(also available in ConfiForms cloud, of course)

Probably you are on an older version of the plugin, at the moment?

Alex

comments: author: Jay Moon
body: That's great to hear. It is possible we have older version. How can I check the version? Thanks again, Alex.


author: Alex Medved _ConfiForms_
body: The easiest way is as follows - <https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+FAQ#ConfiFormsFAQ-HowdoIseetheversionofConfiForms>


author: Jay Moon
body: Thanks. I found our installation is using 3.5.4. I will follow up with confluence admin to install newer version and try out. Thanks again.


author: Jay Moon
body: Alex, we upgraded to 3.11.4 and auto URL detection seems to work. This is great. However, when we have custom URL such as sth://somethingelse, somehow, it converts to <https://ourcompanyconfluenceurl>**sth://somethingelse**. This is bizarre. Even when I edited in http code to put manual link, it converts to above.

Other weird behavior I found is that when I type "<https://www.google.com>" and save, it doesn't convert but only when I added more empty lines after link. This happens for the last URL entry.

Any advice is appreciated. Thanks.


author: Alex Medved _ConfiForms_
body: When I test the link as you mentioned I get something like

```
<p><a href="sth://somethingelse" target="_blank">sth://somethingelse</a></p><p><br></p>
```

(when looking at the HTML code)

Alex


author: Jay Moon
body: Alex, thanks for testing it out. It seems working for you. I also see same HTML code while editing but after I save the form, it converts to what I mentioned above. I plan to talk to IT team in my company if any of their setup is causing this. I may comeback here with more question. Thank you again.


author: Alex Medved _ConfiForms_
body: Oh, you know, after testing this a bit more we see that the contents gets somehow sanitized by the editor itself. We are looking to see if this behaviour can be changed


author: Jay Moon
body: Thanks, Alex. Please keep this thread updated after your investigation. Thanks for your attention.


author: Alex Medved _ConfiForms_
body: We have found the issue and will fix it shortly, the fix will be included in ConfiForms version 3.12.3 and onwards


author: Jay Moon
body: Alex, I also want you to check the following issue.

When I type <https://www.google.com> (then space), it converts to URL in the editor but when I saved it, it removes URL but saves as

\<p\>[https://www.google.com\&nbsp](https://www.google.com&nbsp);\</p\>

This works well only if I added additional line when I saved it.


author: Jay Moon
body: In my company, not only https, but also many custom url like sth://somethingelse, opening related tools. This works well (automatic clickable link) in confluence pages but I have to create link in wyswyg editor manually. Hope my description makes sense.


Tags: addon-com.vertuna.confluence.plugins.confiforms

confiforms

confluence-data-center

data-center