Skip to content

Releases: xdan/jodit

Bug fix

28 Sep 13:36
Compare
Choose a tag to compare

Big refactoring and Bug fix

19 Jun 21:40
Compare
Choose a tag to compare

New plugins system = Build-in plugins + Extra plugins + Build system

23 Dec 20:46
Compare
Choose a tag to compare

Plugin system was changed

Before

Jodit.plugins.insertText = function (editor) {
    editor.events.on('someEvent', function (text) {
        editor.selection.insertHTMl('Hello ' + text);
    });
};

Now

Jodit.plugins.add('insertText', function (editor) {
    editor.events.on('someEvent', function (text) {
        editor.selection.insertHTMl('Hello ' + text);
    });
});
console.log(Jodit.plugins.get('insertText'));
Jodit.plugins.remove('insertText');

extraPlugins options

Inside plugin you can use several fields:

// emoji.js

class Emoji {
    hasStyle = true; //
    requires = ['autocomplete'];
    init(editor) {
        // this code will be execute only after autocomplete.init
    }
}

Jodit.plugins.add('emoji', Emoji);

And inside you init code

Jodit.make('#editor', {
	basePath: 'https://sitename.com/somepath/',
	extraPlugins: ['emoji']
});

It will try to download

https://sitename.com/somepath/plugins/emoji/emoji.js

hasStyle = true; means try download and include in page style file:

https://sitename.com/somepath/plugins/emoji/emoji.css

In plugins/example folder you can find example.

extraPlugins option allows append in editor extra plugins from npm, bower etc.

Build System

In Build system was added gulp subsystem for build extra plugins.
You can make extra plugins like plugins/example and after build,
this plugin will not be inside jodit.min.js file. It will be in separate
folder (eg build/plugins/emoji/).

Also in root you can find make.js file for install your plugin
in build system.

Modern Browser Support

11 Dec 20:16
Compare
Choose a tag to compare

In build directory you can find several files

jodit.css
jodit.js   

jodit.es2018.css
jodit.es2018.js

jodit.es2018.min.css 
jodit.es2018.min.js  
          
jodit.min.css        
jodit.min.js

jodit.min.js - This file contains usual ES5 syntax and can be used in IE11, it has polyfills for compatable with ie11
jodit.min.es2018.js - This file contains ES2018 syntax(async,await, arrow function etc.) and can be used in modern browsers, it does not have any polyfills. This file is 79kb smaller than the es5 version.

Use jodit.min.es2018.js if you use Jodit only in moder browsers.

License

03 Jul 21:36
Compare
Choose a tag to compare

Now you can use Jodit under MIT or GPL2-or-later or Commercial licenses.
Jodit is licensed under a triple license system (MIT or GPL version 2-or-later or Commercial). This means you are free to choose with which of these licenses you want to use this library.
It does not mean what for commercial products you need commercial license. You can use any of these licenses in commercial and non commercial products.

Bug fixes

11 May 22:14
Compare
Choose a tag to compare
  • tests can be runned from github.io
  • Fixed bug in table cell after pressing enter
  • Added cleanHTML.fillEmptyParagraph=true option. It is fill in empty block tags
  • In inline mode - editor does not apply:  min-height, height and width options
  • Remove old license info from editor
  • Fixed #45
  • Fixed #47
  • Fixed #43
  • Fixed #46
  • Fixed #43
  • Fixed #42
  • Changed all images on local in tests
  • Fixed #39
  • Fixed licence and examples in README.MD
  • Fix #41
  • Fix #37. Added cleanHTML.removeOldTags щзÐs options
  • Fix bug in redoundo manager
  • Fixed bug in enter plugin, when cursor was in latest - 1 position and enter was pressed it was not splited
  • Added uploader.insertImageAsBase64URI option for issue https://github.com/jodit/jodit-angular/issues/
  • Fix #36
  • Fixed bug #34
  • Fixed #35
  • Fixed #25 - Better image upload response status check
  • Fix bug in fullsize mode

Allow files

31 Mar 22:25
Compare
Choose a tag to compare

In FileBrowser now allowed upload files (not only images)

image

Bug fix and imruves

  • Fixed copy/paste image fragment in editor
  • Upload file or drag and drop file (not image) will call inserting A element instead IMG. For images will be inserted IMG element
  • Added File button
  • Fix bug in sticky plugin
  • All filebrowser methods return promise
  • Fix bug in context menu
  • Fix bug in Tooltip and fix bug with context menu
  • Fix caseinsensetive in events
  • Fixed #28
  • Fixed #29
  • Fixed #30
  • Fix scroll bug in source mode

Inline mode

17 Mar 21:19
Compare
Choose a tag to compare

Inline mode Try

clip2net_180314171237

Bug Fix

13 Mar 14:41
Compare
Choose a tag to compare
  • Fixed #21 and added denyTags options
  • Fixed selectin code in source mode
  • Alow insert HTML in source mode
  • Fixed autosize in source mode when used native textarea (useAceEditor: false)
  • Remove all empty tags cleanHTML.removeEmptyElements = true
  • Fixed behavior when UL was selected and was executed command formatBlock
  • Fixed bug in source mode when autosize was calculated only after click
  • Fix a lots bugs in enter plugin
  • Fix bug in redo/undo functionality
  • Fixed jodit/jodit-angular#1
  • Fix dark theme
  • Remove fill attribute from icon select-all
  • Added boxsizing to iframe body
  • Added minWidth option
  • Added maxWidth option

3.1.62 Bug fix and Improves

05 Mar 07:38
Compare
Choose a tag to compare

Bug fix and Improves

  • In table generator remove dynamic cells/rows count
  • In table generator added classlist options
    image
  • Added paste storage tests
  • Added paste storage plugin
    - -05 03 2018-12-30-13
  • Fix selection image after click
  • Fix inside paste plugin
  • Added Cut button
  • Added break in default buttons list
  • Fix plugin's descriptions
  • Fix custom tooltip's tests
  • Added showTooltip and showTooltipDelay options
    - -05 03 2018-12-35-56
  • Increase minHeight option
  • Fix double dialog alert after pasting HTML
  • Added INSERT_CLEAR_HTML and INSERT_ONLY_TEXT options try
  • Fast fix for #19