1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How Do I Add HTML To A ckEditor?

Discussion in 'Visual Basic .NET' started by dragonrage01, Oct 27, 2013.

  1. dragonrage01

    dragonrage01 Power Member

    Joined:
    May 19, 2011
    Messages:
    674
    Likes Received:
    155
    How Do I Add HTML To A ckEditor?
    Anyone know the code?


    Thank you in advance.
     
  2. DarkPixel

    DarkPixel Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 4, 2011
    Messages:
    1,328
    Likes Received:
    1,239
    Location:
    ↓↓↓↓
    Home Page:
    Hmm if you mean what I think you mean, at the top left you click a button, and it views the source code. Paste your code there, and click that button again to view the result on the WYSIWYG editor.
     
  3. dragonrage01

    dragonrage01 Power Member

    Joined:
    May 19, 2011
    Messages:
    674
    Likes Received:
    155
    I meant in code. Not manually.
     
  4. KirtiD

    KirtiD Newbie

    Joined:
    Jun 13, 2013
    Messages:
    49
    Likes Received:
    15
    Location:
    Beed
    hi

    if u r looking for winform base or wpf html editor there are lots of options,personally I never used CKEditor,
    Recently I developed a WYSWYUG editor using Boo HTML editor
     
    • Thanks Thanks x 1
  5. dragonrage01

    dragonrage01 Power Member

    Joined:
    May 19, 2011
    Messages:
    674
    Likes Received:
    155
    Thanks for the suggestion but I'm not making a website.

    I'm basically going to a website, going to the place where they have a CKEditor, my webbrowser control is going to place a link there pointing to my website.
    I am just looking for a line of code that will basically input my html code to the CKEditor.

    Thanks anyway.
     
  6. KirtiD

    KirtiD Newbie

    Joined:
    Jun 13, 2013
    Messages:
    49
    Likes Received:
    15
    Location:
    Beed
    ok u mean u r trying to automate any website which having CKEditor ?
    if so then can u share webpage u r trying to automate I will try same
     
  7. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    try to evaluate some javascript like this:
    Code:
    for(var key in CKEDITOR.instances ) CKEDITOR.instances[ key ].setData('<a href="http://www.blackhatworld.com">bhw</a>')
    
     
  8. ContentLockPro

    ContentLockPro Power Member Premium Member

    Joined:
    Nov 7, 2012
    Messages:
    723
    Likes Received:
    129
    Simply switch to the HTML editor and copy-paster it.
     
  9. dragonrage01

    dragonrage01 Power Member

    Joined:
    May 19, 2011
    Messages:
    674
    Likes Received:
    155
    I tried doing this but I couldn't make it to work.