visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
283 stars 44 forks source link

Attributes - Move key type to enum #138

Closed adrian-moisa closed 7 months ago

adrian-moisa commented 1 year ago
const String RETAIN_KEY = 'retain';
const String INSERT_KEY = 'insert';
const String DELETE_KEY = 'delete';

For further clarification: Embeds are stored as data types on the insert ops. So that means the ops types are just 3 known types. I specify this because at some point we got a little confused by thinking that the ops types can be more than 3 (inlcuding custom emebds) That is false because embeds are store in the data of an operation, not in the key.