I using CKEDITOR for a text, and i want limited number of embed ( video and pictures ) who can upload a user, this mean need count there, problem is it I don't know who to count when a video or picture is delete white backspace. I was trying many way to catch event change
and key
but event key
do not track when you press backspacing and remove a element. And with event change
I do not see what element was removed or to make a comparation between actual data and previous data. I was try find who undo is implemented but I don't found.
If someone have any ideea who can track when remove a element please help me.
我在change
和beforeCommandExec
之间找到了一个组合,我计算了oembed类的数量和img标签的数量,我不知道这是否是最佳实践,但暂时仅是计算您的元素的可能性。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.