Skip to main content

Change the Connections editor on the fly

·256 words·2 mins

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

Christoph Stoettner
Author
Christoph Stoettner
I work at Vegard IT GmbH as a senior consultant, focusing on collaboration software, Kubernetes, security, and automation. I primarily work with HCL Connections, WebSphere Application Server, Kubernetes, Ansible, Terraform, and Linux. My daily work occasionally leads to technical talks and blog articles, which I share here more or less regularly.

Related

Patch Orient Me Container

I wrote about font loading from external CDN in the post Hiding The Create Community Button 2nd last year and hoped this is finally fixed for all Connections applications. A good summary on the reasons to not allow external font loading is Blocking Web Fonts for Speed and Privacy. So I checked with a Connections 7 deployment with the latest CFix (CFix.70.2112) deployed, if this is still an issue with Connections. In former Connections’ versions we found external fonts loaded in Orient Me (/social), Communities Catalog (/communities) and the Admin panel (/cnxadmin/).