stylo

Another kind of rich text editor

MIT License

Stars
713
Committers
8

Bot releases are hidden (Show)

stylo - Undo-redo is my passion

Published by peterpeterparker over 2 years ago

Features

  • clean outerhtml for undo-redo update too

Fix

  • prevent "out of range" cursor move on undo-redo
  • re-evaluate node depths when moving element from undo to redo queue
stylo - Fix glitchy display

Published by peterpeterparker over 2 years ago

0.0.24 (2022-05-26)

Fix

  • color and link overlay close and glitchy toolbar display

0.0.23-1 (2022-05-26)

Features

  • detect empty paragraph only for text paragraphs type
stylo - Empty placeholder detection fixes

Published by peterpeterparker over 2 years ago

0.0.23-1 (2022-05-26)

Features

  • detect empty paragraph only for text paragraphs type

0.0.23 (2022-05-26)

Features

  • detect empty paragraph only for placeholders type
  • rename stylo-empty into style-placeholder-empty
  • add class for second element in content editable only if there are no other paragraphs

0.0.22-4 (2022-05-25)

Fix

  • Create link was broken because the new listener was resetting the toolbar when in fact it was effectively active

0.0.22-3 (2022-05-24)

Fix

  • clean class stylo-empty in case it would be automatically copied by the browser

0.0.22-2 (2022-05-24)

Fix

  • update class stylo-empty also when there is no selected paragraph

0.0.22-1 (2022-05-20)

Fix

  • attach container listener in components
stylo - Detect empty paragraphs

Published by peterpeterparker over 2 years ago

Features

  • detect first two paragraphs and set a class stylo-empty if empty
  • display "+" when code blocks or images are clicked
  • attach all keydown listener to container
stylo - Close colors and link overlays

Published by peterpeterparker over 2 years ago

Fix

  • close colors and link overlays
stylo - Transform Paragraph Undo Redo

Published by peterpeterparker over 2 years ago

Fix

  • incorrect undo-redo history on transform paragraph
stylo - Paragraph attributes

Published by peterpeterparker over 2 years ago

Features

  • use and add an attribute paragraph_id (can be customized) to identify each paragraph
  • more Grammarly attributes to ignore

Fix

  • deleteParagraph triggered sometimes even though no paragraph was deleted

Note:

I wish there was another solution but did not manage to properly identify which DOM elements are paragraphs or not when deletion happen.
The Mutation Observer API and Dom API do not provide yet enough information or customization about it.
That's why this new feature to detect deleted paragraphs more accurately.

stylo - Placeholder color

Published by peterpeterparker over 2 years ago

Style

  • placeholder default color rgba(55, 53, 47, 0.5)

Fix

  • placeholder color style variable typo --stylo-placeholder-color not --style-placeholder-color
stylo - Backward delete

Published by peterpeterparker over 2 years ago

Fix

  • delete backward empty paragraph
stylo - Context menu

Published by peterpeterparker over 2 years ago

Fix

  • right click - context menu support
stylo - iOS...again

Published by peterpeterparker over 2 years ago

Features

  • focusout for iOS devices
stylo - Placeholder

Published by peterpeterparker over 2 years ago

Features

  • debounce display of placeholder "Press "/" for plugins"

Style

  • position of all paragraphs set to relative and placeholder set to absolute
  • color picker height and alignment for Brave and Safari
stylo - iOS 😩

Published by peterpeterparker over 2 years ago

Style

  • button color on iOS
stylo - Fix and styles for the blog editor I'm developing

Published by peterpeterparker over 2 years ago

Fix

  • transform very first paragraph
  • delete content backward
  • placeholder position if browser adds a <br/> at begin of new paragraph

Style

  • use no height if invisible
  • placeholder and add colors
stylo - Tabs and undo-redo

Published by peterpeterparker over 2 years ago

0.0.9 (2022-03-06)

Fix

  • focus list of plugins on display
  • miscellaneous selection and order fixes for undo-redo
  • preserve cursor position on undo-redo tab

0.0.8-2 (2022-02-19)

Style

  • inline plugin style to bypass .hydrated class

0.0.8-1 (2022-02-19)

Features

  • expose i18n types
stylo - Integration within other Web Components

Published by peterpeterparker over 2 years ago

Features

  • integration of Stylo inside of other webcomponents

Fix

  • "enter" new paragraph if focus at begin of an existing paragraph
  • range 0 is not a valid index (on window resize)

Build

  • bump Stencil
stylo - Integrate last fix and features in ddg

Published by peterpeterparker over 2 years ago

Features

  • reset undo stack on destroy

Fix

  • display placeholders "Press / for plugins"
  • create preventive HTML element for text inputs only if targeted container does not accept text
  • on deleteContentBackward reset range to cover the all target paragraphs (do not keep empty elements in dom)
stylo - Undo-redo stack inputs

Published by peterpeterparker over 2 years ago

Features

  • "undo-redo" array of inputs because characterdata changes can actually be triggered in multiple paragraphs at once

Fix

  • "DOMException: Failed to execute 'setStart' on 'Range': The offset 7 is larger than the node's length (1)."
stylo - Fix last weekend and launch issues

Published by peterpeterparker over 2 years ago

Features

  • preserve styles when removing links (except Firefox)
  • prevent creation of text nodes - i.e. leaves - when user is typing (direct children of the content editable should all be HTML elements)
  • <img/> and <hr/> do not need to be wrapped in a parent contenteditable=false anymore
  • redo user selection after "undo-redo"

Fix

  • add link on Firefox
  • Android v12 keyboard appearing and disappearing at the same time
  • clone image on drag
  • remove target paragraph on deleteContentBackward ("avoid text to get title style when deleting and replacing it")
  • redo deleted paragraphs content
stylo - Hijack Enter

Published by peterpeterparker over 2 years ago

Features

  • revert hijack "enter" - browser does not the job as expected
  • improve new lines within paragraphs ("shift + enter")

Fix

  • extract content in case of new paragraphs initiated within a paragraphs ("not from end of line")