Radio buttons acts as Check-box in TinyMce 4

后端 未结 3 1304
失恋的感觉
失恋的感觉 2021-01-24 07:03

Here\'s the fiddle, the type is radio but acts like check-box

{type: \'radio\', name: \'letter\', label: \'Letter\'},
{type: \'radio\         


        
相关标签:
3条回答
  • 2021-01-24 07:04

    for the 2nd question: {type: 'radio', name: 'a', label: 'Letter', checked:'checked'}

    0 讨论(0)
  • 2021-01-24 07:05

    It seems like the tinymce/ui/Radio class is not implemented yet. It act like a tinymce/ui/Checkbox.

    You can use the tinymce/ui/ListBox class as a workaround.

    0 讨论(0)
  • 2021-01-24 07:08

    Radio - not implemented yet

    See message here: https://github.com/tinymce/tinymce/blob/ca0f454b9001b9f20aa26349b25f6d839c1a1146/js/tinymce/skins/lightgray/Radio.less

    and almost empty class Radio.js

    https://github.com/tinymce/tinymce/blob/0ab3af181284a060683b566d50e81381cc6445a9/js/tinymce/classes/ui/Radio.js

    0 讨论(0)
提交回复
热议问题