CKEditor plugin: Paste Lotus Notes Link
$10-100 USD
Paid on delivery
Hello Javascript experts!
I’d like to have CKEditor plugin that takes Lotus Notes Data Link strings from clipboard, convert it to URI format and paste it into the editor with href property set.
Our company is still using Lotus Notes as official document database ;-(
But our team started to use Redmine with integrated CKEditor for project management and communications. As we need to save official documents in Lotus Notes, I’d like to have an easy way to make link to it from CKEditor.
Target version of CKEditor is 3.6.3
Required functionality
-------------------------------
* Take strings from clipboard
Just like “Paste as Plain Text” plugin(?), pop up a window for user to paste contents of clipboard by Ctr+v
* Convert Lotus Notes Link strings to URI
Lotus Notes copies something like this to clipboard when user want to make link:
---
PD D
CN=TGLLN1/O=T-Global
Database 'PD', View 'すべての文書', Document 'D'
---
This string needs to be converted to following URI
Notes://TGLLN1/49257B59002A48E5/8178B1C14B1E9B6B8525624F0062FE9F/8279DFA0D157545649257
It looks the conversion rule is straight forward. It basically follows this format:
Notes://servername/replica-id/view-id/notes-id
where “servername” is in tag CN=, “replica-id” is in tag without “:”, view-id is in tag with omitting heading “OF”, “:” and “-ON” in the middle. “notes-id” part is similarly in tag.
There are cases that , and/or tag(s) do not exist, resulting shorter URI. I have collected several examples to explain and test.
* Handle errors and exceptions
If user already had URI in clipboard and pasted it (such as “Notes://TGLLN1/49257B59002A48E5/8178B1C14B1E9B6B8525624F0062FE9F/8279DFA0D157545649257”), silently accept it. If user pasted invalid Lotus Notes Link, display following message:
‘Invalid Lotus Notes Link! Please go back to Lotus Notes, open a document you want to link to, then choose ”Edit -> Copy link -> Document Link (D)”’
* Generate HTML into editor
Generate HTML something like this and insert into editor.
PD D
Href is what you have converted.
I’d like the link text to be generated from contents of tag, concatenating Database and Document values with a space in between. If Database and Document values do not exist, then use full content in tag.
* Package it as CKEditor plugin and a button in tool bar
Finally package it up as CKEditor plugin. I’d like to have the tool available as a button in tool bar, just like “Paste as plain text” button.
Target environment
---------------------------
* CKEditor version 3.6.3
[url removed, login to view]
(I know it is old but I need this version as it comes with redmine CKEditor plugin [url removed, login to view])
* Lotus Notes 8.0.2
Other requirements
----------------------------
* Add reasonable amount of comments in code so that I can maintain it later.
* Frequent communication; One line status update once in two days; describing which part you are working on.
* All the outcome of the project belong to the project owner
What I provide as the project owner
* Requirement (this document)
* Reward as agreed at the start of project (payment can be separated for milestones)
* Feedback as the project progress
What you provide as a developer
* Technical advice/corrections to requirement
* Source code (without minification)
* Packaged plugin
Project time frame
I’d expect the project to be completed in two weeks.
* 1st week: Clarify requirements, submit a version with core functionality for testing
Project ID: #4716928