Official Gazette of Montenegro · Shipped 2024
An integrated legislative document editor
Role
Software Architect
Timeline
2022 – 2024 · editor: 1 year
Client
Official Gazette of Montenegro
Team
Infostream
Overview
A custom editor that understands how a law is structured.
The Legislative Document Editor is a custom-built component developed entirely in vanilla JavaScript, designed specifically for modifying and consolidating legislative texts. Unlike general-purpose editors, it supports advanced legal structuring, enabling documents to be segmented into titles, chapters, articles, paragraphs, points, indents, annexes, and forms.
This ensures that complex legal documents can be authored and maintained with the precision required for official publication.
Features
The things TinyMCE does not do.
The editor introduces features that are typically missing from off-the-shelf solutions, including page layout support, a format painter tool similar to Microsoft Word, and robust change tracking for collaborative editing and review.
It is also Word-compatible, allowing users to copy and paste content between the editor and Microsoft Word without losing formatting. Together, these capabilities deliver a familiar editing experience while staying tightly integrated into the legislative workflow.
Consolidation
Amendments merged into the base law automatically.
In addition to manual editing, the system provides automated text consolidation, applying algorithms based on regular expressions that merge amendments into the base legislation.
By interpreting specified modifications, insertions, and deletions, the editor can generate a fully updated and consolidated version of the law, significantly reducing manual effort and minimizing the risk of human error in the legislative process.

