如何填写编辑器webbrowser? [英] How can I fill the Editor webbrowser?

查看:67
本文介绍了如何填写编辑器webbrowser?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;



如何在c#中填写编辑器



查看编辑器: http://ckeditor.com/demo [ ^ ]





发送文字在编辑器中:

hi to all;

How can in c# I fill the Editor

view editor : http://ckeditor.com/demo[^]


send text in editor:

HtmlDocument doc = this.webBrowserBlog.Document;
doc.GetElementById("???").SetAttribute("Value", txtTitle.Text);

推荐答案





有什么问题查看您的或ckeditor网站的源代码并找到正确的ID?如果您使用的是Firefox浏览器,则可以使用内置的DOM对象检查器,也可以安装Firebug等插件。



请看这里:

https://addons.mozilla.org/pl/firefox/addon/firebug/ [ ^ ]



[更新]

这是因为CKEditor放在IFRAME里面。

我在互联网上找到了类似的帖子,应该给你一个提示:

https ://social.msdn.microsoft.com/Forums/en-US/acc5a3e5-2406-4344-ad8d-6b816ad17d64/webbrowser-iframe?forum = vblanguage [ ^ ]



干杯!
Hi,

What is the problem to look at your or ckeditor web site's source code and find proper ID? If you're using Firefox browser you have built-in DOM object inspector or you can install plugins like Firebug.

See here:
https://addons.mozilla.org/pl/firefox/addon/firebug/[^]

[Update]
It's because CKEditor is placed inside IFRAME.
I've found similar post on the internet that should give you a hint:
https://social.msdn.microsoft.com/Forums/en-US/acc5a3e5-2406-4344-ad8d-6b816ad17d64/webbrowser-iframe?forum=vblanguage[^]

Cheers!


这篇关于如何填写编辑器webbrowser?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆