ใน CKEditor
ฉันกำลังพยายามป้องกันการลบแอตทริบิวต์ id
ออกจากแท็ก html เช่น:
<p id='hello'>Hello</p>
แต่การกำหนดค่า ckeditor นี้ไม่ทำงาน และฉันไม่พบวิธีแก้ไขปัญหาอื่นใดเกี่ยวกับปัญหานี้
<script>
$(function () {
CKEDITOR.replace('description', {
allowedContent: true,
autoGrow_onStartup: true,
extraAllowedContent: '*[id]',
});
});
</script>
คุณช่วยฉันแก้ไขปัญหานี้ได้ไหม?