mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 14:01:45 +02:00
* refactor: iframe service * refactor: name iframely * refactor: use extension storage * refactor:error handler * refactor : error handling * fix: drag handler inside error * feat: refactor space embed handler * refactor: handle convert UI * refactor : iframely service , controller * refactor: fix modal opening logic * feat: loading in twit embed. * fix: twit frame * feat :tweet fix in space. * refactor: change name casing * feat: add icon link * feat: added animation * fix : iframe styles * refactor : update link-container * refactor : fix build * feat: handle link url mark * fix: iframely service created in web * fix: group issue * fix: use live URL instead * fix : close embed modal * feat: handle arrow keys * fix: handle error * fix : remove logs * feat: handle bookmark * feat: handle og image * chore:remove observer * feat: handle bookmark and embed * feat: handle custom render * chore: clean up * feat: handle conversion * fix : handle links properly * feat: handle figma embed * refactor : put iframely controller in ee * refactor: better icon * feat: feature flag external embed * feat: timeout * feat: refactor embed component * refactor: upgrade plan * feat :handle block menu * feat: handle comment * fix : reloads * refactor : remove border * fix : embed order * fix :Embed handler * feat: insert embed v1 * feat : web bookmark command * chore: fix text * feat: ui updates * feat: handle cursor focus * feat: update isopened in storage * feat: add platform name * fix:deny plane embed * feat: props update * feat: handle embed options properly * chore: minor changes * chore : add external embeds in the page form * chore : convert bookmark to rich card * feat : update thumnail not found * feat: add new loading animation * fix : handle paste embed * feat:block translation * feat: basic local setup * feat: embed translation for all languages * chore : update feature flag name * feat: handle feature flag in space * FIX: add build in i18n package * fix : update props for embed handler * chore : remove comments * chore : move hooks * FIX : package update * FIX: live * feat: handle unique ID * feat: handle thumbnails * chore : remove useless fetch * chore : update types * refactor : twitter theme * chore : remove slash command for rich card * chore: different text in readonly * refactor : change editor name * refactor: update modal style * refactor : make the html simple * refactor : external extension * refactor : rename extension * refactor: attribute names * refactor : add entity type * refactor: figma hook * refactor: remove translations * fix : creds * feat: handle iframely api auth * feat: handle space embed load * feat: handle paste link * feat: styles updates * chore : remove editable condition * remove link-container * feat : feature flag slash command * chore * fix * chore : refactor external embed * refactor : fix embed insert * chore : remove auth * chore : remove old code * fix : build * fix:auth * Fix: floating portal Fix * fix: refactor * fix : update types * fix: build * fix : update iframe response types * refactor: embed ui components * refactor : emebd components * refactor : add tailwind animations * refactor core * refactor ce * refactor : move icons * refactor lite editor * small refactor * refactor : update icons import * build fix * fix: cors * feat: update project structure * refactor : embed handler * refactor : embed hooks * refactor : packages * chore: embed setup in dev wiki * refactor: embed extension * refactor:fix types * refactor: external emebds * chore: clean imports * chore :remove readonly editor types * chore : remove logs * Revert changes to dev-wiki/ * refactor: remove upgrade plane component * feat: add unique id * refactor : update fetching logic with useSWR * Feat: Handle auth in iframley API * feat:update embed select style * refactor : remove useless component * refactor : widge embed * Remove changes to i18n locales path * refactor: utils * refactor : update emebd handler * wip -- * fix : build * refactor : block menu * refactor:remove unused code * refactor : update block menu * refactor: slash command feature flag * refactor: add badge in slash command * refactor: editor attribute * refactor : embed handler * fix : swr * fix : build * refactor: feature flag space * refactor : storage types * refactor: remove embeddable * refactor: space remove feature flag * refactor: update space feature flag * refactor: external embed * fix :rerender * build : fix hooks * fix: block menu refactor * refactor: hooks * refactor: move tldjs * refactor :extension * refactor: page render * refactor : update NodeViewProps types * refactor : embed handler space * refactor: update has_embed_failed * refactor: remove useless render code * refactor : twitter embed * fix : build * refactor : attribute with commands * refactor : external embed extension. * refactor: external embed storage. * fix : rich and embed types * fix : web embed * style : selection * refactor: space embed handler * fix : extension storage * refactor: embed types * refactor: imports * fix : page renderer * chore: add comment * chore: update comments * chore: install tldjs * refactor: update ui package * fix :dev-wiki pnpm changes * chore: minor improvements * refactor : update embed type * refactor : update component name * refactor :url modifier * refactor: remove external embed ce * feat: disabled external embed * refactor: add disabled props * refactor: remove get attribute method * refactor: package ui styles * feat: translations * refactor: theme type * feat: jwt auth * improve: add jwt auth for user * chore :comment translations * refactor: api params * refactor: update types * refactor: update props * refactor: constants * refactor: lite comments * refactor: add type imports * refactor:external embed node view * refactor: move tldjs to dev dep * refactor: add flagged check * refactor: update slice imports * refactor: update type changes * chore : remove comments * refactor : update nodeview types * chore :remove type export * chore: update icon * chore: update iframley types * fix: build errors --------- Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com> Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
@plane/editor
Description
The @plane/editor package serves as the foundation for our editor system. It provides the base functionality for our other editor packages, but it will not be used directly in any of the projects but only for extending other editors.
Utilities
We provide a wide range of utilities for extending the core itself.
- Merging classes and custom styling
- Adding new extensions
- Adding custom props
- Base menu items, and their commands
This allows for extensive customization and flexibility in the Editors created using our editor-core package.
Here's a detailed overview of what's exported
-
useEditor - A hook that you can use to extend the Plane editor.
Prop Type Description extensionsExtension[]An array of custom extensions you want to add into the editor to extend it's core features editorPropsEditorPropsExtend the editor props by passing in a custom props object uploadFile(file: File) => Promise<string>A function that handles file upload. It takes a file as input and handles the process of uploading that file. deleteFile(assetUrlWithWorkspaceId: string) => Promise<any>A function that handles deleting an image. It takes the asset url from your bucket and handles the process of deleting that image. valuehtml stringThe initial content of the editor. debouncedUpdatesEnabledbooleanIf set to true, the onChangeevent handler is debounced, meaning it will only be invoked after the specified delay (default 1500ms) once the user has stopped typing.onChange(json: any, html: string) => voidThis function is invoked whenever the content of the editor changes. It is passed the new content in both JSON and HTML formats. setIsSubmitting(isSubmitting: "submitting" | "submitted" | "saved") => voidThis function is called to update the submission status. setShouldShowAlert(showAlert: boolean) => voidThis function is used to show or hide an alert in case of content not being "saved". forwardedRefanyPass this in whenever you want to control the editor's state from an external component -
useReadOnlyEditor - A hook that can be used to extend a Read Only instance of the core editor.
Prop Type Description valuestringThe initial content of the editor. forwardedRefanyPass this in whenever you want to control the editor's state from an external component extensionsExtension[]An array of custom extensions you want to add into the editor to extend it's core features editorPropsEditorPropsExtend the editor props by passing in a custom props object -
Items and Commands - H1, H2, H3, task list, quote, code block, etc's methods.
-
UI Wrappers
EditorContainer- Wrap your Editor Container with this to apply base classes and styles.EditorContentWrapper- Use this to get Editor's Content and base menus.
- Extending with Custom Styles
const customEditorClassNames = getEditorClassNames({
noBorder,
borderOnFocus,
customClassName,
});
Core features
- Content Trimming: The Editor’s content is now automatically trimmed of empty line breaks from the start and end before submitting it to the backend. This ensures cleaner, more consistent data.
- Value Cleaning: The Editor’s value is cleaned at the editor core level, eliminating the need for additional validation before sending from our app. This results in cleaner code and less potential for errors.
- Turbo Pipeline: Added a turbo pipeline for both dev and build tasks for projects depending on the editor package.
Base extensions included
- BulletList
- OrderedList
- Blockquote
- Code
- Gapcursor
- Link
- Image
- Basic Marks
- Underline
- TextStyle
- Color
- TaskList
- Markdown
- Table