4.9.5 (2024-08-21)
- Fix a deprecated tiptap method in the trailing-node extension. (49d5062)
- Upgrade to tiptap 2.6.5. (0b4216a)
4.9.4 (2024-08-20)
-
Fix problem with adding columns in tables and deactivate fixed-paragraph. (ad5e986)
The fixed-paragraph extension was causing a problem when adding columns. This extension adds an extra paragraph at the end of tables, so that it's easier to add content below tables. However, we also have the "dropcursor" extension activated with tables and other block content for the same reason - this one adding a horizontal cursor when navigating below tables which helps in adding content there. To allow adding columns in tables again, the fixed-paragraph extension is deactivated until explictly needed again.
- For better demoing and debugging, make the toolbar sticky. (62155f8)
4.9.3 (2024-08-19)
- Await for the modal pattern initialization in tests. (0ebc3fb)
4.9.2 (2024-07-23)
4.9.1 (2024-07-23)
-
Update getAttrs function to correctly check for the presence of a table inside a div.scroll-table wrapper (8843e28)
-
Upgrade node version for GitHub Actions. (952b4fb)
4.9.0 (2023-11-23)
- Always wrap tables in a div.scroll-table wrapper. (16e1cc5)
-
Allow to select the figcaption node. (aa71dfc)
-
Allow to select-all in tables. (606a4be)
Allow to select all (Ctrl-A, Command-A) with tables in certain conditions. Due to a tiptap/ProseMirror bug tables with some empty cells and no content preceding or following the table, selecting the whole table did not work. This fix makes sure that a non-empty paragraph is added at the end, if no other content is present at the end of the document.
Follow-up from:
More information here:
- Make fixed-paragraph selectable to make the corresponding table selectable. (2c69109)
4.8.6 (2023-10-16)
-
Fix problem with table not selectable with - (4284664)
There is a strange problem with tables and selecting all content with -. When the last node in the document is a table and the last table cell is empty, then pressing - to select everyting only selects the very first node in the document. As soon as one of the conditions - table not the last node or last table cell not empty - is not met, - selects all, as expected.
We fix the problem by making sure some content is following the table and add an empty paragraph. When another solution is found we can remove this hack again.
More information here:
-
Disable horizontal table cell resizing. (81214c6)
We would need quite some extra CSS for the
.column-resize-handle
for a questionable benefit. Disable it for now until we need it back and find a solution for the missing CSS. Example for the CSS to be added (touches also table and cell styles): https://tiptap.dev/api/nodes/table#resizable -
Upgrade dependencies. (a5ea09b)
-
Use a different webpack dev server port than the default Patternslib one. (a099635)
4.8.5 (2023-09-25)
4.8.4 (2023-08-30)
- Upgrade dependencies. (ac4ab29)
4.8.3 (2023-07-27)
4.8.2 (2023-04-17)
- Upgrade tiptap to 2.0.3 and other dependencies. (39c3df9)
4.8.1 (2023-03-09)
- Fix problem with mention/tagging menus. (4bd92c6)Fix a problem where a mention/tagging menu could not be opened when there was already a pat-tooltip instance in tiptap's text content. The dependency on Patternslib 9.8.3-alpha.1+ solves the problem.
-
Improve update performance. (44ab8d2)Do not do a Patterns-scan on the content on each update but debounce it for better performance.
-
Upgrade dependencies. (f6a6871)
4.8.0 (2023-02-14)
-
Adding Links: Correct mail address without the mailto: scheme. (36bfeb0)
-
Improve util.is_url and add util.is_mail. (3ba848c)util.is_url now allows for protocol schemes without slashes and let it detect e.g. also mailto: util.is_mail checks for a valid email adress.
4.7.2 (2022-12-19)
-
Ensure correct execution order when closing the context menu. (986379c)Wait for the tooltip to have been hidden before calling it's destroy method. Then also wait for the close_context_menu to have run before clearing it's instance. This should ensure a correct execution order when closing the context menu.
-
Fix the build. (f4244fb)Temporarily depend on a source-checkout of Patterns to include the sass directory in the npm package to fix the pat-tiptap build. Change back once Patterns 9.8.0-beta.2 is released.
-
Add missing dependency prosemirror-tables. (00a5f6f)
-
Fix import for module federation initialization. (9663a37)
-
Only include dist/ and src/ directories in the npm package. (12637bf)
-
Upgrade dependencies. (ebfc763)
-
Use browserslist defaults. (02a6257)
4.7.1 (2022-12-07)
4.7.0 (2022-12-06)
-
Remove embed, image, link and source panel options. (e7f5da1)Remove the need to define embed, image, link and source panel options and classes. Since the recent change on the panel initialization these options are not needed anymore but kept for backwards compatibility.
-
Support multiple tabs in modal panels. (da9e2d0)The embed, link and source panels now support multiple tabs like the image panel, which can be switched with pat-inject. This allows for more complex panels.
Fixes: #45
-
Install missing peerDependencies. (4181132)
-
Switch to class based patterns. (fe97124)
-
Upgrade dependencies. (5eb5724)
-
Use getter/setter now that we can (since class based patterns). (d3a9b5b)
4.6.2 (2022-11-15)
-
Initialize patterns on load. (022d75b)Scan the content DOM not only when updating the content but also when the content is initially loaded.
-
Suggestion: Correctly initialize suggestions when initially loading the content. (38332ec)Do not initialize suggestion as normal links instead as suggestions. This change also keeps all the suggestion-related attributes when loading the content.
-
Suggestion: Fall back to text content if data-title is not set. (480916f)When rendering suggestions which do not have a data-title attribute, use the source node's text content as text for the rendered suggestion.
-
Suggestion: Set suggestions as isolating content. (d70f32b)Together with the atomic property it The text cannot be changed except by changing the selection.
4.6.1 (2022-09-20)
- Add missing extension @tiptap/suggestion. (f4fd619)
- Upgrade dependencies. (c3e51ae)
4.6.0 (2022-09-06)
- Better handle submits in link, image, embed and source panels. (97f14b4)Encourage in documentation to use .tiptap-confirm buttons in link, image, embed and source panels and actually prevent a form submit. This allows to hit in forms and take over the changes without submitting to the server and without doing a full request/response cycle.
Fixes: #36
- Update webpack config. (c5816e8)
4.5.1 (2022-09-05)
4.5.0 (2022-08-23)
-
Allow to edit embeds. (7e665f6)
-
Allow to edit images with a image picker and support multiple tabs within the image picker dialogue. (95f9a05)
-
Allow to edit images. (da89fc1)
-
Add test for multiple tiptap instances sharing one toolbar. (50e5bfa)
-
Build: Include bundle name and version in generated files (Feature of @patternslib/dev 2.4.0.) (34b16e5)
-
Build: Unlink all linked dependencies before building a bundle. (a97c615)
-
Build: Upgrade dependencies. (25e93c4)
-
Change link context menu class to tiptap-link-menu to avoid potential same class as the trigger class for the link-panel pattern. (c5500e0)
-
Document and demo URL validation in link panel. (ce08c34)
-
Only open link context menu if it is defined. (46f9aeb)
-
Switch to base pattern based patterns. (83a51b5)Change internal patterns to be base pattern based for better integration in the patterns registry and usage of features like preventin double initialization on already initialized nodes.
4.4.0 (2022-08-11)
-
Add utils.is_url to test if a string is a URL. (28e197f)
-
Link panel: Try to correct invalid URLs. (72c25fd)If a URL was entered in the link panel but the protocol part was forgotten, prepend https:// to the URL. Relative URLs are kept as-is.
- Upgrade dependencies. (2bf375b)
4.3.0 (2022-07-17)
-
Close context menu on ESC and outside click. (6de22c2)Always close context menu (link, mentions, tagging) when clicked outside or escape key was pressed.
-
When editing links and closing the link edit panel restore the cursor position to the position where we left. (2b00839)
-
Align to changes in pat-modal where pat-modal-ready is thrown only once and not on the initiating button but on the injected modal. (7011525)
-
Correct import of logger. (ee290e4)
-
Do not open the link context menu after opening the link editing panel. (f7d9e95)
-
Prevent double initialization of link and suggestion context menu patterns. (fbda4f6)
4.2.0 (2022-07-11)
- Always include undo/redo functionality. (870b22c)This allows to use undo/redo via keyboard shortcuts even if undo/redo buttons are not shown.
-
Remove dependency on starter-kit and directly depend on all necessary extensions. Upgrade extensions. (0862192)
-
Upgrade @tiptap/core. (1aa4688)
-
Upgrade to @patternslib/dev 2.3.0. (b55cbc4)
4.1.0 (2022-06-27)
-
Allow to share one toolbar with multiple tiptap instances. (86022a7)Fix an issue with a toolbar which is shared among multiple editor instances would invoke the command on each instance. Now you have to focus at least once the editor so that the toolbar will issue a command on it. When clicking a toolbar button, the last focused texteditor instance is used to issue to command on. To make sure that the toolbar will always invoke an action even without first clicking into a tiptap contenteditable area use pat-autofocus.
-
Fix demo index-many.html with many tiptap instances to use the correct bundle JavaScript. (6ca04b1)
-
Use known good versions for @tiptap until current issues with newer beta releases are resolved. (c9d5716)Newer versions break with: "RangeError: Adding different instances of a keyed plugin (plugin$)"
- Upgrade to @patternslib/dev 2.2.0 and adapt module federation config. (603f12c)
4.0.0 (2022-06-21)
-
Close the suggestion popup when clicking outside. (ca75099)
-
Update demo for correct bundle since we extend @patternslib/dev webpack config. (6c21285)
- Remove console.log message in tests. (b82508c)
4.0.0-alpha.1 (2022-06-15)
-
Depend on @patternslib/dev and extend config from there. (c7989ac)
-
Extend babel config from @patternslib/dev. (b20800e)
-
Extend commitlint config from @patternslib/dev. (96ef27e)
-
Extend eslint config from @patternslib/dev. (6173108)
-
Extend jest config from @patternslib/dev. (f80ad63)
-
Extend Makefile from @patternslib/dev. (37e2c0c)
-
Extend prettier config from @patternslib/dev. (36daaf8)
-
Extend release-it config from @patternslib/dev. (17cea4b)
-
Extend webpack config from @patternslib/dev. (5c19f1a)
- Build: Update GitHub actions setup. (a516f9b)
See the history for older changelog entries.
4.0.0-alpha.0 (2022-06-14)
- Build: Build module federation enabled bundles. (f7012d3)
-
Build: @patternslib/patternslib as peerDependency. (7dd2328)Move @patternslib/patternslib dependency to peerDependencies and set to any version to avoid version conflicts when this package is a dependency of another Patternslib based package.
-
Build: Add @patternslib/patternslib also to devDependencies so that we get it installed. (0e96688)
-
build: Add build:dev script to package.json to create a unminified development build. (d7a0cb2)
-
Build: Add keyword "patternslib" to package.json. (35e1714)
-
Build: Extend jest.config.js from Patternslib and reuse their setupTests file too. (f772a66)
-
Build: Makefile - Allow OTP when publishing to npm, build bundles and publish them on GitHub, add pre-release targets. (1a376cc)
-
Build: Remove dependency regenerator-runtime except from test setup. The async/await runtime handling is already built-in in current Babel. (c88b735)
-
Build: Upgrade and cleanup dependencies. (0558bfc)
-
Make core a little more efficient and don't overuse optional chaining where it's not needed. (f10b94a)
3.4.1 (2022-04-24)
-
Suggestion: Do not break when trying to set a item active, but no results are available. (d222ebd)
-
Suggestion: Get whole suggestion text also when copying. (bdd12ac) Always get the text starting from the suggestion character to the end. Previously when copying a suggestion text into the text area, the text wasn't recognized and not used to filter down the items.
3.4.0 (2022-04-21)
- Suggestion: Allow accessibility attributes on the suggestion link. (2907d97)
- Suggestion: Use data-title to for the link's text. This frees up data-id which we need to add the suggestion id which can then be used by the backend to identify the term. (6cd6669)
- Upgrade dependencies. (a673507)
3.3.0 (2022-04-19)
- Suggestions: Allow data-NAME as attribute on the mention-link. (e13397e)
- Suggestions: Use the closest element as the one where attributes are copied from. e.target is not necessarily the anchor itself but can be any element within the anchor. (eadde22)
-
Suggestions: Enable the data-attribute copying test. It works in the meantime. (7735af1)
-
Suggestions: Test to not copy disallowed attributes. (62c4df6)
3.2.1 (2022-04-15)
-
Ugrade to Patternslib 7.8.0 with a fix to re-init patterns in a tooltip after content was reloaded. (8d2469f)
-
Upgrade dependencies. (e0942d5)
3.2.0 (2022-04-12)
-
Scan content on update for patterns and initialize. (420d6f5)
-
Transform pasted links to anchor elements. (b537356)
- Don't add a line-break when selecting a suggestion from the context-menu. (7b8738a)
-
Update documentation with
disable-patterns
note for the suggestion menu and extend mentions/tags demo with patterns which are initialized when inserted into the content. (f9d31bf) -
Upgrade dependencies. (472ac86)
-
Upgrade to Patternslib 7.7.0 with disable-patterns feature. (2103d1b)
3.1.1 (2022-04-08)
- After text changes dispatch the input event. (2babe56)
-
Cleanup and remove two unused patterns from the demo bundle. (65bfc98)
-
Upgrade dependencies. (cf850da)
3.1.0 (2022-04-07)
-
After setting the text in an textarea, dispatch the change event. (99c9647)
-
Allow data-tiptap-value not be the direct parent of the click target. (3b0bb40)
-
Dont break with suggestion not following markup conventions. (d3d18cb)
- Rename tiptap-suggestion class to tiptap-items to better follow code/naming style conventions. (9bfa537)
3.0.0 (2022-04-05)
-
Add extra classes tiptap-mentions and tiptap-tags to context menu wrapper. (8318531)
-
Allow
<br>
line breaks. Use<mod><enter>
or<shift><enter>
on your keyboard. (0e96118) -
Rework suggestion support. (673be2d)
-
Remove mentioning and tagging modules and combine the functionality in a new suggestion extension.
-
Implement filtering functionality where the text after the suggestion trigger character can be used to filter the results on the server side.
-
Implement suggestion item navigation via arrow keys, suggestion selection via enter key, selecting via mouse and closing via escape key.
-
Allow to configure the suggestion extension. This is used for
@
mentions and#
tagging.
-
Do not close each others context menu from suggestion or links by passing the extension's own context menu instance. (b98bfeb)
-
Do not close/open the context menu when reloading it's contents unless force_reload is given. (c808b76)
-
Keep context menu on the left side. (59c65df)
-
Position the context menu only when first opened and not while writing. (4453eb6)
- Remove mentions-search-key and tags-search-key parameters. (776f88f) The filter term is just appended at the end of the URL, so you can configure any search query string you want.
- Rename context-menu-link to link-menu, context-menu-mentions to mentions-menu and context-menu-tags to tags menu for easier names. (2d0c0f3)
-
Cleanup: Align figcaption extension to factory pattern. (62de8b7)
-
Cleanup: Align figure extension to factory pattern. (159efe4)
-
Cleanup: Align heading extension to factory pattern. (3a3cbdb)
-
Cleanup: Align image-inline extension to factory pattern. (23b9830)
-
Cleanup: Align suggestion factory naming to other extensions. (c0ca99e)
-
Cleanup: Factor out embed panel initialization into embed extension module. (8f79d08)
-
Cleanup: Factor out image panel initialization into image-figure extension module. (30f2ece)
-
Cleanup: Factor out link extension and panel initialization to seperate module. (71ca4e2)
-
Cleanup: Factor out source panel into own extension module. (d5c65df)
-
Cleanup: Factor out toolbar initialization into own module. (86fa69c)
-
Cleanup: Factor-out focus class handler which is responsible to set a focus class on specified elements like the toolbar when another element is active. (a2eedfa)
-
Cleanup: Remove now unused import events from main module. (4e3d096)
-
Cleanup: Remove unused extension placeholder-top-bottom. (582f462)
-
Demo: Add demo page for many tiptap instances. (4e1b82d)
-
Demo: Use better names for mentions and tags in the demo. (afc9448)
-
Demo: Use extra unicode characters for suggestion names, contrasting better the difference between names and
data-tiptap-value
. (66a8fe6) -
Depend on Patternslib 7.3.0. (7f89d19)
-
Dependencies: Upgrade dependencies. (9644f7b)
-
Dependencies: Upgrade to Patternslib 7.2.0. (603aa87)
-
Export logger from tiptap to be used in extensions and other modules. JS can handle circular imports, so no worries. (2e2025a)
-
Move documentation to src/documentation.md for consistency. (ec4a97b)
-
Remove resolution dependencies. Should not be needed anymore. (4d374b7)
-
Upgrade dependencies (6460330)
-
Upgrade dependencies. (a8035b4)
-
Upgrade to Patternslib 7.5.0 which with pat-tooltip get_content API method which allows for reloading content without closing/opening the tooltip. (6ab7435)
2.1.0 (2022-02-15)
-
Embed: Add extension to embed vimeo/youtube/etc media files as iframe. (6d75426)
-
Embed: Support Vimeo and Youtube URLs and fix URLs if necessary. (47f9ff0)
-
Images: Add images within a figure tag with optional figcaption. (72ac9ac)
-
Images: Allow inline images and non-inline (within figure tags) images at the same time. (8052b23)
-
Allow tiptap to be instantiated multiple times. (f5289ff)
-
Images: Add custom image extension to also allow images with data src. (29b5043)
-
Images: Do not allow any drag/drop of images within figure tags as long this doesn't work properly. (c49f66a)
-
demo: Adapt to new publicPath setting of Patternslib. (8042ac0)
-
Demo: Add example to demo with an top-level, a figure and an inline image. (ffc3dd2)
-
demo: Use template-tags for UI elements instead of the hidden attribute. (446ecf1)
-
Dependencies: Upgrade dependencies. (29a94ab)
-
Docs: Rework for some minor typos. (33ce18c)
-
Extensions: Provide default exports for Mentions and Tags, so that they can conveniently be imported. (4a07fb9)
-
Tests: Add link panel test and restructure test names. (6234dff)
-
Tests: Instantiate Pattern via new to set up everything as expected. (0a61ecb)
2.0.2 (2022-01-28)
-
Include the yarn.lock file. (GitHub action complained and it's not the worst idea too). (74d2d22)
-
Upgrade dependencies. (e82b022)
-
Upgrade to Patternslib 7 and change the import for add_event_listener. (2fc36da)
-
Use caching in GitHub actions. (25026b6)
-
webpack: Simplify webpack static devServer directory config. (252ca8e)
2.0.1 (2022-01-18)
- Also set/unset the tiptap-focus class when interacting with context menus or image/link/source panels. (03773b2)
2.0.0 (2022-01-17)
- Upgrade to tiptap version 2 (Beta).
- Use plain JavaScript instead of Vue.
- Remove collaboration support. This is up to come in a later version.
- Allow to create a toolbar based on conventions. See the Readme to see how this is used.
- Allow to create a external link, image and source code overlay. See the Readme to see how this is used.
- Implement a first implementation of a @-mentions and #-tagging functionality. A better implementation will follow.
- Add pat-autofocus and autofocus attribute support.
- Add support for the placeholder atttribute.
- Add a
tiptap-focus
class on the toolbar when the editor has focus.
- Depend on Patternslib version 6.3.2.
- Upgrade tiptap and prosemirror dependencies.
- Switch to Webpack 5.
1.1.0 (2021-06-15)
- dependencies: Depend on Patternslib v4.4.0. (47a86b8)
- dependencies: Upgrade dependencies on minor+patch level. (dcb5715)
- make release-patch: Add missing patch for patch level releases. (c1e86c4)
- Release: Remove the release-web target. Only Patternslib releases are pushed to Patterns-releases on Github. (9facb77)
- Release process: Do not include the release commit in the changelog. (4b08a72)
- webpack: Adapt start script to recent dependency changes. (5afc465)
- webpack: Simplify webpack and make vue webpack config reuseable. (21bdefd)
- tests: Install a vue-jest version which is compatible with @babel/core instead babel-core. (d9d4f2e)
- Upgrade TipTap. (f5a4bb6)
- Upgrade to Patternslib v4 final - tiptap customizations. (3cc6a2e)
- Upgrade to Patternslib v4 final. (e4e65be)
- Initial release.