Change the Connections editor on the fly

by Christoph Stoettner
Read in about 2 min · 250 words

Typewriter

Photo by Markus Winkler | Unsplash

When I test topics with the different Connections editors (CKEditor, Textbox.io and TinyMCE), I always used multiple users in my test environment, installed the editor selector ear and then gave each of the test users a different editor. That’s easy with the different j2ee roles, but I always had to use multiple browsers or sandboxes to see them next to each other.

Selection with URL parameter without changing the user

During a support call with Tiny and HCL I learned, that you can switch the editor with a URL parameter. So no need to change the configuration or use the tinyeditorselector.ear.

Add the following snippet (case-sensitive!) to the URL you want to call:

CKEditor

?editor=CKEditor

Textbox.io

?editor=textbox.io

TinyMCE

?editor=TinyMCE

When there is already an option added to the URL, just add this snippet and replace ? with &

Example

Open a blog post: https://preview.hclconnections.net/blogs/97886d2e-9f86-4f49-b74c-b0b525ae7689?lang=en_us this will open the blogs overview, now select New Entry and you are redirected to https://preview.hclconnections.net/blogs/roller-ui/authoring/weblog.do?method=create&weblog=97886d2e-9f86-4f49-b74c-b0b525ae7689&lang=en_us.

In my case this opens the TinyMCE editor as the default:

So now lets change the URL to: https://preview.hclconnections.net/blogs/roller-ui/authoring/weblog.do?method=create&weblog=97886d2e-9f86-4f49-b74c-b0b525ae7689&lang=en_us&editor=textbox.io

and the same page with Textbox.io is loaded.

And finally change the URL to: https://preview.hclconnections.net/blogs/roller-ui/authoring/weblog.do?method=create&weblog=97886d2e-9f86-4f49-b74c-b0b525ae7689&lang=en_us&editor=CKEditor

and CKEditor loads and can be used.

So a perfect way to fast change to a different editor, do some tests and screenshots and then go back to your default.

Be aware that some Connections URLs use a #, then you need the additional URL parameter before the # sign!

Wiki Example

https://preview.hclconnections.net/wikis/home?lang=en-us#!/wiki/W269d1b93c705_4ebe_9986_1964c6dd6bfa/page/Welcome%20to%20Testing%20Metrics/edit here use https://preview.hclconnections.net/wikis/home?lang=en-us&editor=textbox.io#!/wiki/W269d1b93c705_4ebe_9986_1964c6dd6bfa/page/Welcome%20to%20Testing%20Metrics/edit

Author
Add a comment
Error
There was an error sending your comment, please try again.
Thank you!
Your comment has been submitted and will be published once it has been approved.

Your email address will not be published. Required fields are marked with *

Suggested Reading
Card image cap

Yesterday I updated a Connections environment to the latest CFix. In other environments I found that PushNotification Cluster was not started after the update, like described in the knowledge base document PushNotification broken after upgrading to CFix.65CR1.2201 . In this update the application and cluster were running, but not working at all. Browser console.log showed the error:

Error connecting to push auth sync service /servic/info: RequestError: Unable to load https://cnx-fqdn/push/service/info status: 500
Read in about 1 min
Card image cap
HCL Support published a collection of links to MustGather informations for Connections and addons. That’s the perfect starting point to start troubleshooting and collecting logs for your support cases. Collecting Data: Repository of MustGather for Connections
Read in about 1 min
Card image cap

Some time ago I got the tip from HCL Support, that the Create Community button will recognize the role community-creator only when the gatekeeper option CATALOG_CARD_UPDATED is set to false.

This is working, but I had to complain, that this option activates some code, which loads fonts from a CDN instead of the local Connections deployment.

Read in about 2 min