gpt4 book ai didi

ckeditor - HOW TO - 通过编辑器外部的另一个按钮触发 ckeditor 中的源按钮

转载 作者:行者123 更新时间:2023-12-04 23:54:36 33 4
gpt4 key购买 nike

我有一个像 ckeditor 一样的 textarea。
在编辑器中有一个按钮可以将内容查看为 source/html。
我在 textarea 上方有一个输入按钮,可以将 textarea 内容预览为 html
意味着单击我的预览按钮将触发 ckeditor 按钮单击。
有人可以帮我吗..?

最佳答案

有史以来最短的回答:

editor.execCommand( 'source' );

关于ckeditor - HOW TO - 通过编辑器外部的另一个按钮触发 ckeditor 中的源按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18830715/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com