@bigbinary/neeto-editor 1.45.28 → 1.45.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor.js +10 -3
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +10 -3
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -19
- package/package.json +1 -1
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -5269,7 +5269,7 @@ const underscorePasteRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;
|
|
|
5269
5269
|
* This extension allows you to create italic text.
|
|
5270
5270
|
* @see https://www.tiptap.dev/api/marks/italic
|
|
5271
5271
|
*/
|
|
5272
|
-
const Italic = Menu$3.Mark.create({
|
|
5272
|
+
const Italic$1 = Menu$3.Mark.create({
|
|
5273
5273
|
name: 'italic',
|
|
5274
5274
|
addOptions() {
|
|
5275
5275
|
return {
|
|
@@ -5710,7 +5710,7 @@ const StarterKit = Menu$3.Extension.create({
|
|
|
5710
5710
|
extensions.push(HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
|
|
5711
5711
|
}
|
|
5712
5712
|
if (this.options.italic !== false) {
|
|
5713
|
-
extensions.push(Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
|
|
5713
|
+
extensions.push(Italic$1.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
|
|
5714
5714
|
}
|
|
5715
5715
|
if (this.options.listItem !== false) {
|
|
5716
5716
|
extensions.push(ListItem$1.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
|
|
@@ -11012,6 +11012,12 @@ var FigCaption = Menu$3.Node.create({
|
|
|
11012
11012
|
}
|
|
11013
11013
|
});
|
|
11014
11014
|
|
|
11015
|
+
var Italic = Italic$1.extend({
|
|
11016
|
+
addInputRules: function addInputRules() {
|
|
11017
|
+
return [];
|
|
11018
|
+
}
|
|
11019
|
+
});
|
|
11020
|
+
|
|
11015
11021
|
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11016
11022
|
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11017
11023
|
var KeyboardShortcuts = function KeyboardShortcuts(_ref) {
|
|
@@ -19423,11 +19429,12 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
19423
19429
|
bulletList: false,
|
|
19424
19430
|
blockquote: options.includes(constants.EDITOR_OPTIONS.BLOCKQUOTE),
|
|
19425
19431
|
orderedList: options.includes(constants.EDITOR_OPTIONS.LIST_ORDERED),
|
|
19432
|
+
italic: false,
|
|
19426
19433
|
history: !collaborationProvider,
|
|
19427
19434
|
heading: {
|
|
19428
19435
|
levels: utils.buildLevelsFromOptions(options)
|
|
19429
19436
|
}
|
|
19430
|
-
}), TextStyle$2, Underline, KeyboardShortcuts$1.configure({
|
|
19437
|
+
}), TextStyle$2, Underline, Italic, KeyboardShortcuts$1.configure({
|
|
19431
19438
|
onSubmit: onSubmit,
|
|
19432
19439
|
shortcuts: keyboardShortcuts,
|
|
19433
19440
|
isBlockQuoteActive: options.includes(constants.EDITOR_OPTIONS.BLOCKQUOTE)
|