bumpcore / editor.php

Editor.php is a package designed to assist in parsing and manipulating the output of Editor.js with ease.
https://bumpcore.com/docs/editorphp
MIT License
24 stars 3 forks source link

[2.x] Remove `$root` and `$model` from EditorPhp #42

Open megasteve19 opened 1 year ago

megasteve19 commented 1 year ago

This is not convinient. Only pupose of this is accessing $model if EditorPhp initiated from cast. Just for this usage, it's not nice to pollute global scope.

megasteve19 commented 12 months ago

Maybe allowing to set virtual properties fixes model issue, also it fits for #53. No real properties, only virtual properties.