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

[Feature request] Fakeable block definition #66

Open ezitisitis opened 3 months ago

ezitisitis commented 3 months ago

Hi,

About the BumpCore\EditorPhp\EditorPhp::fake(), I would recommend to give an option to choose which blocks user want to generate

Thanks for the package

megasteve19 commented 3 months ago

Hi! Thank you for your feedback.

I think it’s a great idea. Just to confirm, do you mean something like the following example?

EditorPhp::fake(
   except: [Image::class],
   // Or
   only: [Table::class]
)

In this example, I included the except parameter as well. The actual implementation might differ, but this is just for illustration.

If this is what you meant, please let me know so I can implement it.