UNPKG

dmeditor

Version:

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

253 lines (232 loc) 13.1 kB
0.2.3 - 2025-06-17 updated: allow percentage width in mobile - 2025-06-13 fixed: [carousel]don't show button when there is only 1 item - 2025-06-03 fixed: 2 column/3columns not full width - 2025-05-19 fixed: setting not loading value set by style (special default style) - 2025-05-15 fixed: copying should replace all ids (including children) - 2025-05-15 added: paster while adding & use local storage for copy so it cross tabs/pages - 2025-05-15 added: delete confirmation - 2025-05-15 updated: change style_content to be style_element and name - 2025-05-13 added: gallery supporting touch when pop up - 2025-05-12 added: mobile column for grid - 2025-04-28 added: touch & title & link in carousel - 2025-02-17 updated: tabs clean style to use custom style - 2025-02-15 added: configStyleSettings in config/editor (both for variable and callback) to control setting based on context - 2025-02-11 fixed: style tab's scrollbar issue - 2025-02-10 fixed: show adding message shouldn't need selection - 2025-02-10 fixed: edit mask clicking multi times in accordion 0.2.2 - 2025-02-07 added: iframe mobile height setting - 2025-02-07 added: mobile hero-text mobile setting for hero - 2025-02-07 added: support mobile in edit mode - 2025-02-04 added: support editMask in definition for all widget - 2025-02-04 udpate: rewrite Accordion for better customization - 2025-02-04 added: table head text color support - 2025-01-30 udpated: removed container width & algin in heading - 2025-01-30 udpated: disabled style uses identifier - 2025-01-30 fixed: issue on sumsang android devices 0.2.2-beta.1 - 2025-01-28 added: support for enabledStyleSettings in root style option & identifier in setting - 2025-01-26 added: image radius and disable container border in image - 2025-01-26 added: group make it expandable & borderWidth/Color/Radius & config.editor.disabledStyleSettings - 2025-01-24 added: image border setting in herotext - 2025-01-22 fixed: Text widget link shouldn't be selected in view mode - 2025-01-21 added: fullWidthContent setting - 2025-01-20 added: closebutton text & fix close in pop up - 2025-01-18 added: button in carousel - 2025-01-14 added: simple form design - 2025-01-13 updated: minirichtext onValueChange optional - 2025-01-13 updated: renamed menu to section menu (kept identifier) - 2025-01-10 updated: remove gallery default style to set in config - 2025-01-10 added: Gallery - can add from top & title data & use better button style - 2025-01-10 updated: expose useGlobalVars - 2025-01-09 added: link in image - 2025-01-05 added: direction in menu - 2025-01-04 fixed: popup can not input in setting panel 0.2.1 - 2025-01-03 fixed: [important]rich text text give error in list - happens between 2 richtext editor & introduced useSettingStatus store - 2024-12-21 added: item position in grid - 2024-12-20 added: dropdown support for page setting - 2024-12-19 updated: icons - 2024-12-18 added: identifier for tabs - 2024-12-16 fixed: have equal height in 2 or 3 columns layout - 2024-12-16 added: dependency so block can rely on other block (with api in client, server fetch) - 2024-12-13 [BC]udpated: layout-2columns & layout-3columns use object in children - 2024-12-13 added: data source, with edit callback, fetchInClient, fetchInServer and render in content-view - 2024-12-11 added: menu, content-view - 2024-12-08 fixed: doesn't show plus icon when height is too little (<30px) - 2024-12-07 added: popup widget - 2024-12-06 added: gap for hero text - 2024-12-05 updated: hero-text uses object instead array in children - 2024-12-04 added: object support in kernel for children - 2024-12-02 added: support <RenderToSetting /> to use createPortal to render setting to setting panel 0.2.0 - 2024-11-16 fix: text widget - use image ratio when insert to avoid blank space. - 2024-11-14 removed: text align on button - 2024-11-14 added: icon display for style - 2024-11-10 updated: ListOverview style - 2024-11-10 added: widgetType of grid as 'list' - 2024-11-07 udpated: scroll to top only when it's too high - 2024-11-07 fixed: color predefined should be align in middle - 2024-11-07 updated: configured sample color palette - 2024-11-07 added: link helper - https, http, email, phone & empty - 2024-11-05 updated: change 'align' name to be 'self align' - 2024-11-05 added: feat: Make text widget's heading dropdown - 2024-11-05 added: feat: Make text widget's heading dropdown - 2024-11-04 added: iframe & code a mask div to be able to activate in edit mode - 2024-11-03 added: css class dme-block-depth-<number> starting from 1 - 2024-10-30 fixed: padding setting simple/advanced issue & enhaced - 2024-10-29 added: checkbox & display image in page settings - 2024-10-25 fixed: width/padding setting does not refresh when switching block - 2024-10-25 added: support showInput parameter in range - 2024-10-25 udpated: iframe to use percentage by default - 2024-10-25 added: width setting component which supports percentage & input - 2024-10-24 added: button align in collapsable text - 2024-10-24 added: plus button for accordion - 2024-10-24 fixed: collspable text hidden content taking space - 2024-10-22 updated: tabs using display to hide - 2024-10-22 updated: [text]support base64 image - 2024-10-22 fixed: [text]issue pasting contains : or link - 2024-10-22 udpated: close collapsable text by default - 2024-10-22 fixed: table udpate issue when has header - 2024-10-22 fixed: new empty doesn't rerender issue in table - 2024-10-21 fixed: table link issue - have to use useEffect to not losing selection - 2024-10-21 fixed: table needs 2 click to focus on editor - 2024-10-21 updated: table default size - 2024-10-20 updated optimize image rendering - 2024-10-20 added: float, inline for image - 2024-10-19 added: table style keys - 2024-10-18 added: characters for richtext - 2024-10-18 added: link open new window - 2024-10-18 update: only use LinkChooser for links 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