Skip to content

Commit

Permalink
2.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Dec 6, 2020
1 parent 750644a commit 0f890e0
Show file tree
Hide file tree
Showing 32 changed files with 98 additions and 46 deletions.
2 changes: 1 addition & 1 deletion dist/plugins/colors/ui/sass/trumbowyg.colors.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/colors/ui/trumbowyg.colors.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/colors/ui/trumbowyg.colors.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/emoji/ui/sass/trumbowyg.emoji.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/emoji/ui/trumbowyg.emoji.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/emoji/ui/trumbowyg.emoji.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/giphy/ui/sass/trumbowyg.giphy.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/giphy/ui/trumbowyg.giphy.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/giphy/ui/trumbowyg.giphy.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/highlight/ui/sass/trumbowyg.highlight.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/highlight/ui/trumbowyg.highlight.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/highlight/ui/trumbowyg.highlight.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions dist/plugins/indent/trumbowyg.indent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

/* ===========================================================
* trumbowyg.indent.js v1.0
* Indent or Outdent plugin for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Fabacks
* Website : https://github.com/Fabacks
*/

(function ($) {
'use strict';

$.extend(true, $.trumbowyg, {
langs: {
en: {
indent: 'Indent',
outdent: 'Outdent'
},
fr: {
indent: 'Augmenter le retrait',
outdent: 'Diminuer le retrait'
}
}
});

// Adds the extra button definition
$.extend(true, $.trumbowyg, {
plugins: {
paragraph: {
init: function (trumbowyg) {
var indentBtnDef = {
fn: 'indent',
title: trumbowyg.lang.indent,
isSupported: function () {
return !!document.queryCommandSupported && !!document.queryCommandSupported('indent');
},
ico: 'indent'
};

var outdentBtnDef = {
fn: 'outdent',
title: trumbowyg.lang.outdent,
isSupported: function () {
return !!document.queryCommandSupported && !!document.queryCommandSupported('outdent');
},
ico: 'outdent'
};

trumbowyg.addBtnDef('indent', indentBtnDef);
trumbowyg.addBtnDef('outdent', outdentBtnDef);
}
}
}
});
})(jQuery);
1 change: 1 addition & 0 deletions dist/plugins/indent/trumbowyg.indent.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/mathml/ui/sass/trumbowyg.mathml.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/mathml/ui/trumbowyg.mathml.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/mathml/ui/trumbowyg.mathml.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/mention/ui/sass/trumbowyg.mention.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/mention/ui/trumbowyg.mention.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/mention/ui/trumbowyg.mention.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/specialchars/ui/trumbowyg.specialchars.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/table/ui/sass/trumbowyg.table.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor plugin
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/table/ui/trumbowyg.table.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg plugin stylesheet
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/table/ui/trumbowyg.table.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 11 additions & 16 deletions dist/trumbowyg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Trumbowyg core file
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down Expand Up @@ -87,16 +87,10 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {
autogrow: false,
autogrowOnEnter: false,
imageWidthModalEdit: false,
hideButtonTexts: null,

prefix: 'trumbowyg-',
// classes for inputs
tagClasses:{
h1: null,
h2: null,
h3: null,
h4: null,
p: null,
},
tagClasses: {},
semantic: true,
semanticKeepAttributes: false,
resetCss: false,
Expand Down Expand Up @@ -129,9 +123,12 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {
// imgDblClickHandler: default is defined in constructor

plugins: {},

urlProtocol: false,
minimalLinks: false,
defaultLinkTarget: undefined
defaultLinkTarget: undefined,

svgPath: null
},
writable: false,
enumerable: true,
Expand Down Expand Up @@ -247,7 +244,7 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {
if (matches != null) {
svgPathOption = source.substring(0, source.indexOf(matches[0])) + 'ui/icons.svg';
}
})
});
}

// Do not merge with previous if block: svgPathOption can be redefined in it.
Expand Down Expand Up @@ -1515,11 +1512,9 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {
if(!$(window.getSelection().focusNode.parentNode).hasClass('trumbowyg-editor')){
listId = window.getSelection().focusNode.parentNode;
}
var arr = t.o.tagClasses[param];
if (arr) {
for (var i = 0; i < arr.length; i+=1) {
$(listId).addClass(arr[i]);
}
var classes = t.o.tagClasses[param];
if (classes) {
$(listId).addClass(classes);
}
} catch (e) {

Expand Down
4 changes: 2 additions & 2 deletions dist/trumbowyg.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ui/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/ui/sass/trumbowyg.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/ui/trumbowyg.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
* Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
Expand Down
2 changes: 1 addition & 1 deletion dist/ui/trumbowyg.min.css

Large diffs are not rendered by default.

0 comments on commit 0f890e0

Please sign in to comment.