admin管理员组

文章数量:1122846

I am trying to set font size, bold, italic, color, and other styles for a non-editable element. I am removing the contenteditable attribute before executing the command, and then adding contenteditable=false when executing the command. However, I encountered an issue where the cursor cannot select the non-editable element alone. It can only be selected when it is along with other elements. I tried adding &#8203, but the effect was not significant. Are there any other better ways to solve this problem? Example link enter link description here The expected result is that the cursor node can be selected regardless of whether the mouse selects from the front to the back or from the back to the front.

本文标签: How to select the cursor in a noneditable element in TinyMCEStack Overflow