Repository navigation
Releases: TimurSeyidov/jodit-plugins
Releases · TimurSeyidov/jodit-plugins
Release list
jodit-plugin-datagen 1.0.0
Added
- "Generate data" toolbar button and dialog with the tabs "Data", "Template" and "Help", a preview of the result and "Insert".
- Ten types of data from DummyJSON: posts, quotes, comments, to-dos, users, products, reviews, recipes, an order of products with quantities and totals, and placeholder images. Up to 100 items at once, chosen at random without repeats, with "Shuffle"; a short description of each type in the dialog.
- Built-in layouts for every type: headings and paragraphs, lists, checklists, tables, cards, full recipes and more.
- Templates in three parts, Before, Item and After, with placeholders (
{{title}},{{company.name}},{{images.0}},{{reviews.comment}},{{index}},{{count}}) and the filtersul,ol,first,join,count,words,fixedanddefault. Syntax highlighting in the template, a clickable list of the fields of the type, and a short reference on the "Help" tab. - Checks of the template while typing: unknown fields and filters, wrong arguments and unclosed placeholders are underlined and listed, and stop the insertion; tags that are not closed are a warning.
- Values are escaped, the preview runs no scripts, and the inserted HTML goes through the
cleanHTMLsettings of the editor. The private fields of DummyJSON users are never asked for. - Insertion of blocks in place of the empty paragraph of the caret or after its block, and of text and inline elements at the caret. The inserted content has no marks of the plugin.
- Options
baseUrl(your own copy of DummyJSON),types,layouts(layouts of your site),maxCount,defaultCount,rememberandtimeout. generate,checkTemplate,render,TYPES,LAYOUTSandFILTERSto make content outside the editor.- English, German and Russian.
- ES module for bundlers, and browser builds for ES2015, ES2018 and ES2021, for a
<script>tag orextraPlugins.
npm: jodit-plugin-datagen@1.0.0 · Changelog · Docs
jodit-plugin-shortlink 1.1.0
Removed
- The cleanuri.com service (
service: 'cleanuri',services: { cleanuri: … }) and theproxyoption it needed: browsers cannot call cleanuri.com directly, and a proxy on the site is rarely set up. A service like it can still be used through your own server with a function asservice.
This removal breaks the 1.0.0 options that used cleanuri, which semantic versioning would release as 2.0.0. It comes as 1.1.0 because 1.0.0 was out for less than an hour and cleanuri did not work in it without a proxy. If you set service: 'cleanuri', switch to 'dagd', 'clck' or a function.
npm: jodit-plugin-shortlink@1.1.0 · Changelog · Docs
jodit-plugin-shortlink 1.0.0
Added
- "Shorten" button next to the URL field of the link form: it replaces the URL with the short link, and the link text too when it is the URL. Works with the built-in form and with a custom
link.formTemplatethat marks the field withref="url_input". - "Shorten link" button in the toolbar of a link, after "Edit link": changes the link in place. Not shown for short links, email links and other links that are not http(s).
- Services: da.gd (default), clck.ru, cleanuri.com through a proxy on the site, or a function for your own service.
- Choice of the service right where links are shortened: a list next to the "Shorten" button and an arrow on the "Shorten link" button; da.gd and clck.ru by default, set with the
servicesoption, remembered in the browser unlessrememberis false. - Error messages in the editor: the text of the service's error, an unreachable service, a timeout, a link that is not http(s), an answer that is not a link.
shorten,isHttpUrlandisShortUrlto make short links outside the editor.- English, German and Russian.
- ES module for bundlers, and browser builds for ES2015, ES2018 and ES2021, for a
<script>tag orextraPlugins.
npm: jodit-plugin-shortlink@1.0.0 · Changelog · Docs
jodit-plugin-code 1.3.0
Added
- "Site highlighting" switch for each block, in the dialog and in the toolbar of the block, and the
nativeoption for new blocks: the block keeps its frame, header and buttons, and its code is saved as plain<code class="language-*">without colors, for highlight.js, Prism or another highlighter of the site and its theme. In the editor it looks and works as any block;data-nativekeeps it this way when the HTML is edited again. - "Header" switch for each block, in the dialog and in the toolbar of the block, and the
headeroption for new blocks: without the header the block is the frame and the code, with no copy or download button; switching it off also stops offering the file. renderNativeto make that HTML outside the editor.
Changed
<code>of a block with its own colors also has thenohljslnclass, and so has a block with site highlighting and its own line numbers: highlightjs-line-numbers.js, which numberscode.nohighlighttoo, no longer adds a second column of numbers. Blocks saved before get it when saved again.
npm: jodit-plugin-code@1.3.0 · Changelog · Docs
jodit-plugin-code 1.2.0
Added
- Works next to Jodit PRO: when the
pasteCodebutton is in the toolbar, the plugin turns itself off in that editor with a warning in the console; without the button both plugins work, and Jodit PRO no longer repaints the blocks, opens its dialog or popup for them, or strips their highlighting from the saved HTML.
Changed
<code>of a block has thenohighlightclass in place oflanguage-*, so highlight.js and Prism on a site skip the blocks: no repainting and no highlight.js warnings. Blocks saved before get it when saved again.- In the editor a block holds its code and line numbers in
<div>elements instead of<pre>; the saved HTML is unchanged.
npm: jodit-plugin-code@1.2.0 · Changelog · Docs
jodit-plugin-code 1.1.0
Added
- Language button in the toolbar of a block: choosing another language highlights the code again and keeps the other settings of the block.
- Line numbers switch in the toolbar of a block.
npm: jodit-plugin-code@1.1.0 · Changelog · Docs
jodit-plugin-qrcode 1.0.2
jodit-plugin-qrcode 1.0.1
Fixed
- The
qrcodeoption ofJodit.make()is typed in projects withmoduleResolution: "nodenext": relative imports in the declarations now carry the.jsextension. - The
errorCorrectionLeveloption is typed as'L' | 'M' | 'Q' | 'H'without@types/qrcode, which projects using the plugin do not have; it wasanybefore.
npm: jodit-plugin-qrcode@1.0.1 · Changelog · Docs
jodit-plugin-qrcode 1.0.0
Added
- Toolbar button that inserts a QR code for a text or link as an image, with a live preview in the dialog.
- The dialog opens with the selected text; the text stays and the code is inserted after it.
- Editing of an inserted code: double click, the pencil of the image toolbar, or the button; the size set by resizing is kept.
- The image tools of Jodit treat QR codes as QR codes: the image properties dialog is not opened for them, and the image button is not highlighted on them.
- Options:
size,margin,errorCorrectionLevel,dark,light,format(PNG or SVG),useSelection,className. - English, German and Russian.
- ES module for bundlers, and browser builds for ES2015, ES2018 and ES2021 with the qrcode library included, for a
<script>tag orextraPlugins.
npm: jodit-plugin-qrcode@1.0.0 · Changelog · Docs
jodit-plugin-mailto 1.0.2
Fixed
- The address preview and the "Insert" and "Unlink" buttons stay at the bottom of the dialog while the fields scroll. On the "Additional" tab the form is higher than the popup, and the buttons were out of view.
Added
- An animated demo in the README.
npm: jodit-plugin-mailto@1.0.2 · Changelog · Docs