ckeditor-youtube-plugin icon indicating copy to clipboard operation
ckeditor-youtube-plugin copied to clipboard

remove a field, not just disable it

Open LiamDawe opened this issue 6 years ago • 2 comments

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

LiamDawe avatar Apr 20 '18 10:04 LiamDawe

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".

schams-net avatar Jan 31 '19 23:01 schams-net

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.

LiamDawe avatar Jan 31 '19 23:01 LiamDawe