Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi to all;

How can in c# I fill the Editor

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


send text in editor:
C#
HtmlDocument doc = this.webBrowserBlog.Document;
doc.GetElementById("???").SetAttribute("Value", txtTitle.Text);
Posted

1 solution

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!
 
Share this answer
 
v2
Comments
samadblaj 1-Dec-14 14:31pm    
nooooo...
please view my source:
proje724.ir/weblog.rar
Marcin Kozub 1-Dec-14 15:21pm    
I've updated my answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900