Contents

Licence

Model

  • A perpetual licence with 12 months of updates, counted from the issue of the licence key (at the latest from the 15th day after purchase). Every X.Y version receives security fixes for 24 months from its release (dates in the table on the Changelog page). After the update period you can still install releases that contain only security fixes of the X.Y versions released during your update period, until their support ends; X.Y versions released later require a renewal.
  • The licence covers the domains given at purchase and all their subdomains, with no limit on users. The unlimited variant covers any number of domains operated by you or by your clients whose website or application you develop, host or maintain, for as long as you provide those services or the installation remains unchanged; it does not allow giving the editor to third parties for their independent use.
  • Changing the domain of a licence (when the original domain is no longer used with VEditor, EULA section 3.2), transferring a licence, refunds and complaints: use the licence form.
  • Local and test addresses need no key for the editor. AI functions there need a free trial key or a licence key of the AI edition.
  • A missing licence blocks nothing except AI functions in the Pro edition.

Local and test addresses are: localhost, names without a dot, *.localhost, *.test, *.local, *.example, *.invalid, *.internal, *.lan, *.home.arpa, private and reserved IP addresses in the usual dotted form, and subdomains that start with dev., test., testing., stage., staging., preview., qa. or uat..

Where to enter the key

In the browser, as an editor option:

await VEditor.create('#content', { licenseKey: 'VED1.…' });

On the server, for the AI endpoint, in the server configuration (licenseKey, by default from the VEDITOR_LICENSE_KEY environment variable). The Laravel, Symfony and Yii2 integrations pass the same key to the editor for you.

How the key is checked

The key looks like VED1.<data>.<signature>: JSON data (number, buyer’s e-mail, edition, domains, update date, issue date) and an ECDSA P-256 signature. The signature is checked locally, without contacting the vendor’s server: in the browser with WebCrypto, on the server with OpenSSL. Both use the same public key.

Without WebCrypto (a page without HTTPS) or without OpenSSL the signature cannot be checked; the key is then not accepted (state unverified). Serve pages with a licence key over HTTPS (localhost works too). This applies to local and test addresses as well: http://192.168.1.10 or http://dev.example.test without HTTPS cannot verify even a valid trial key, so AI stays off there; use HTTPS or localhost.

StateWhenWhat the user sees
okthe key covers the domain and this versionnothing
locallocal or test addressnothing; AI only with a trial key or an AI edition key
missingpublic domain, no keya notice above the content once per browser session, then an “Unlicensed copy” button on the status bar
domainthe key covers other domainsas above, with the domain name
expireda version released after the update period (a release with only security fixes is still covered if its X.Y version was released during your update period and is still supported)as above, with the dates
invalidwrong format or signature, also on a local address so that you notice before deployingas above; AI functions are blocked, also on a local address
triala trial key on a public domainas with missing: the notice explains that the domain needs a licence; AI functions are off
unverifiedthe signature cannot be checked: no WebCrypto (page without HTTPS) or no OpenSSLas above, the notice asks for HTTPS; AI functions are off

The buyer’s e-mail is in the key, but the editor never shows it.

Licence notice above the content (here for an invalid key) with a Close button
console.log(VEditor.VERSION, await VEditor.checkLicense('VED1.…', location.hostname));

Trial key

A free trial key lets you download VEditor from the Composer repository and test it on your own machine before you buy. Request it with “Download for testing” on the pricing page: you get a confirmation link by e-mail, and the key arrives after you confirm.

  • It works on local and test addresses with every function, AI included, with your own API key. Without a key the editor works there too, but AI does not.
  • It has no time limit and gives access to every version in the repository.
  • One key per e-mail address: asking again sends the same key.
  • On a public domain it works like no licence: the editor shows a notice and AI functions are off. After buying, replace the trial key with your licence key in the editor options, the server configuration and Composer.

The trial key is for development only; the licence agreement does not allow production use or sharing it.

In PHP

VEditor\License checks a key on the server, for example in your own admin panel:

use VEditor\License;

$license = License::check(getenv('VEDITOR_LICENSE_KEY') ?: null, License::requestHost());
// ['status' => 'ok', 'host' => 'example.com', 'edition' => 'ai', 'updates' => '2027-10-29', 'released' => '…']

License::allowsAi($license);                      // true for "local", or "ok" with the AI edition
License::isLocalHost('staging.example.com');      // true
License::coversHost(['example.com'], 'shop.example.com'); // true

A domain in the key covers itself and all its subdomains; www. in the key is ignored, and * covers any domain. Ports and letter case do not matter.

Updates

The private Composer repository shows every version released within your update period, and after that the releases that contain only security fixes of the X.Y versions released during your update period, until their support ends (24 months from the release of X.Y.0). Until the support of the last X.Y version you are entitled to ends, we guarantee that the versions covered by the licence can be downloaded again; keep your own copies as well. After a renewal you get a new key with a new update date; replace it in both places.

Something unclear? Send feedback on the documentation.