fonini / ckeditor-youtube-plugin

CKEditor Plugin to embed Youtube videos.
https://fonini.github.io/youtube-plugin-for-ckeditor-4.html
Do What The F*ck You Want To Public License
51 stars 61 forks source link

remove a field, not just disable it #66

Open LiamDawe opened 6 years ago

LiamDawe commented 6 years ago

Hi, thanks for including an option to disable fields. However, is there a way to actually remove a field? :)

schams-net commented 5 years ago

Totally agree. This would be great. I came across this super ugly workaround once (requires jQuery):

$(document).ready(function() {
  setInterval(function() {
    $('div[name="youtubePlugin"] .cke_disabled').hide();
    $('div[name="youtubePlugin"] td.cke_dialog_ui_vbox_child span.cke_dialog_ui_html').hide();
  }, 100);
});

It simply hides all elements of the YouTube plugin, that has been set to "disabled".

LiamDawe commented 5 years ago

Meh, I grew tired of waiting and fully adjusted the plugin to suit my own needs and removed all the fields I will never need, less cruft.