开发者

CKEditor: insert HTML from clip-board at current insertion point in WYSIWYG mode?

开发者 https://www.devze.com 2023-03-23 12:53 出处:网络
It seems that to insert HTML into the source code in 开发者_C百科CKEditor one must view source, then scan down through the code to find the appropriate insertion point.

It seems that to insert HTML into the source code in 开发者_C百科CKEditor one must view source, then scan down through the code to find the appropriate insertion point.

I have a situation where the user will have HTML in their clipboard, but will not be HTML proficient, and will have a tough time understanding where in the source they need to insert the clip of HTML

SO: Is there a way to get CKEditor to paste, into the source code, whatever is in the user's clipboard at the current insertion point while in WYSIWYG mode?

Would this require developing a plugin? If so, could anyone someone provide a high-level overview of how that would be done?


use the Embed Media plugin which is available.
Just add that plugin. Using that the user can paste the html code in a dialog box and that will be pasted in the editor wherever the cursor was.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号