emilianotisato / nova-tinymce

Laravel Nova TinyMCE editor (with images upload capabilities!)
MIT License
116 stars 38 forks source link

extended_valid_elements #64

Open rbijkercom opened 3 years ago

rbijkercom commented 3 years ago

The editor removes empty span element. I want to prevent this. Is it possible to set extended_valid_elements? At the moment I add this option: NovaTinyMCE::make('Body')->options(['valid_elements' => '+*[*]']), which works.

But I think setting extended_valid_elements => 'span[*]'
would be more precise.

emilianotisato commented 2 years ago

Hi @rbijkercom sorry the delay.

It's a nice solution you have implemented.

I'll accept a PR to implement extended valid elements.

Regards Emiliano