UNPKG

dmeditor

Version:

dmeditor is a block-style visual editor. Data is in json format.

148 lines (131 loc) 7.18 kB
0.2.0-beta.1 - 2024-06-03 added: onChange on <DMEditor /> - 2024-06-03 [BC]updated: use setData instead of setEditorJson - 2024-06-03 [BC]updated: put onSave & onCancel into <DMEditor /> - 2024-06-02 added: resize on sidebar - 2024-05-30 added: full width switch on root - 2024-05-29 added: setting grouping - 2024-05-29 added: block background - 2024-05-28 added: highlight select item in mixed widget - 2024-05-28 updated collpable-text: add text & use children render directly - 2024-05-27 [BC]put root to container instead of widget - use inside key(eg. button) or '>'(eg. >div) insead - 2024-05-27 add color setting in text - 2024-05-27 hero-text: use BLockRender intead BlockListRender to children instead, so the general setting can apply - 2024-05-26 [BC]added category for widget - 2024-05-26 [BC]added category & styleTags for a setting - 2023-12 - 2024-05 Core rewritten -------------------------------- 0.1.0-beta.12 0.1.0-beta.11 - 2023-11-08 added: context in onServerLoad - 2023-11-01 added: common blocktypes & registerPopularBlocktypes - 2023-11-01 added: translation support - 2023-11-01 updated: use tooltip for toolbar - 2023-09-06 updated: pass blockData to preBlock - 2023-09-05 fixed: image browse saves url instead of id - 2023-06-19 updated: use category layout for list and grid 0.1.0-beta.10 - 2023-06-14 fixed: getImageUrl & getfileUrl issue when rendering - 2023-06-14 added: text supports soft break - 2023-06-09 updated: decleared BlockData type - 2023-06-09 [backward compatiablity issue]updated: change 'common' into settings as style. eg{settings:{style:{marginTop: 10}}} - 2023-06-06 [backward compatible issue]updated: change template to be style in data - 2023-06-05 updated: default image to use dmeditor's template repo - 2023-06-05 added: differeciate tempalte(a pre-defined widget from exisiting widget) with style(a style) - 2023-06-04 fixed: multi layer add above & under tool - 2023-06-03 updated: grid use empty children with adding button(also appy to list when it's empty) - 2023-06-02 [api change] removed view in block, use render instead & add type in title of add button - 2023-06-02 fixed: image resize flashing issue in text - 2023-06-02 added: container_list - 2023-05-30 updated: image in text resize in ratio by default - 2023-05-30 fixed: setting's left menu should be fixed position - 2023-05-29 updated: template list support sorting by name - 2023-05-29 fixed: useDevice useEffect not executed in client in dmeditor-server - 2023-05-28 added: grid with collapable text sample - 2023-05-28 added: collapable text - 2023-05-02 updated: disabled all link while editing - 2023-04-30 changed initData to getData(data) for template 0.1.0-beta.9 - 2023-04-29 added: TemplateSettings & heading template changed to gradient - 2023-04-28 updated: use useGetDevice (return 'mobile'|'tablet'|'') insteaf of useIsMobile - 2023-04-28 updated: optimized to use only 2 variables: --dme-main-width and --dme-container-width for developing plugin - 2023-04-27 added: useIsMobile() hook for mobile related rendering - 2023-04-27 fixed: text toolbar is below add button - 2023-04-26 updated: only show add button when hover into - 2023-04-25 updated: move delete button to BlockProperty - 2023-04-25 updated: use multiple tabs for composite block type(eg. imagetext) - 2023-04-25 updated: move setting(page) to left tool - 2023-04-24 fixed: button a style & plus icon should have white background - 2023-04-23 updated: id using 10 characters - 2023-04-23 added: auto focus on heading editing - 2023-04-23 added: empty data's place holder for all - 2023-04-23 updated: left menu tool colors - 2023-04-23 updated: use 2 column in default table - 2023-04-23 fixed: select wrong after adding bove - 2023-04-21 fixed: image description is editable in view mode - 2023-04-21 updated: default image text data & color = 2023-04-21 fixed: list data losing when saving text - 2023-04-21 fixed: heading saving issue - 2023-04-19 updated: DMEditorProps type & added DMEditorViewProps 0.1.0-beta.8 - 2023-03-30 updated:Pictures in text support drag and drop, set border width and color functions, and modify the display value to inline block - 2023-03-27 updated:block setting support align - 2023-03-27 updated:image support border width & border color - 2023-03-27 updated: Accordion add move up and down function - 2022-03-23 added: tab support location with tab key - 2023-03-23 fixed: $issue before link in text - 2023-03-21 fixed: saving in accordion & tab - 2023-03-21 upated:hide preBLock when it is view - 2023-03-21 upated:Support id - 2023-03-17 upated:image fullscreen issue and Support for CSS variable layout - 2023-03-13 added: move up and down function - 2023-03-09 added: align in heading 0.1.0-beta.7 - 2023-03-07 fixe nanoid issue 0.1.0-beta.6 - 2023-03-06 fixed nanoid issue on nodejs server side - 2023-03-03 added: editor area min-width:960 max-width: 1200 - 2023-03-02 updated: insertLink - 2023-03-02 added: fileUrl property - 2023-02-27 added: view prop in components - 2023-02-15 updated: block data id (add a before nanoid) and show id - 2023-02-08 updated: layout-main>viewmode-edit width - 2023-02-08 updated: blockList preview can edit issue - 2023-02-08 updated: registerCategory (Do not register if any) 0.1.0-beta.5 - 2022-12-30 updated: use emotion instead of global css import - 2022-12-30 added: Accordion and BlockTab 0.1.0-beta.4 - 2022-12-21 Fixed: type issue in typescript 0.1.0-beta.3 - 2022-12-20 updated: support using external js for templates. format: var dmeditor={templates:[]} - 2022-12-18 updated: initData from property to function to avoid referance's value change - 2022-12-18 added: support template of block type, where it's possible to define init data, name, css, options(eg. text colors) - 2022-12-16 improved: hoved to show adding tool - 2022-12-16 added: BlockList for api use - 2022-12-16 added: ImageHeadingText - 2022-12-14 updated: put MenuList in Block instead of DMEditor - 2022-12-14 added: ImageText - 2022-12-09 updated: DMEditor setting should only execute once 0.1.0-beta.2 - 2022-12-08 add id in every block data - 2022-12-08 removed title and active in BlockProperty(active is used outside) - 2022-12-08 put Page into root intead of BlockProperty to avoid multi rendering - 2022-12-08 added: image text(first version) for composite block type - 2022-12-01 added: debounce on BlockText - 2022-11-30 toast - 2022-11-27 added: [server side loading] serverLoad in DMEditor & onServerLoad(data)=>any in blocktypes - 2022-11-24 fixed: BlockProperty issue in server side 0.1.0-beta.1 - 2022-11-22: [data format]set 'common' in root instead of under settings - 2022-11-22: [data format]use 'data' insead of 'content' in data format - 2022-11-22: [Text]hide color/align when cursor is in link - 2022-11-21: support pageTab callback in DMEditor - 2022-11-21: support customProperty in DMEditor - 2022-11-15: [text]fixed link hard to select - 2022-11-15: [common]]Add block common settings(first for text, heading, table) - Remove help link - Added Image & Link browse from external api - Support document tab - Add DMEditorView - Support moving up/down and delete block