Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6229877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:38:52+00:00 2026-05-24T09:38:52+00:00

I found the following answer when looking for code to navigate the editors text

  • 0

I found the following answer when looking for code to navigate the editors text area elements.. The code works, the onlyu problem is i dont understand why..

var documentWrapper = editorname.document; //replace by your CKEDitor instance ID 
var documentNode = documentWrapper.$; // or documentWrapper['$'] ; 

The answer was got from the folloing stackOverflow link :

ckeditor scrollIntoView to a div element within the editor

In particular could someone explain to me the syntax documentWrapper.$;

Ive no idea what this means??

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:38:53+00:00Added an answer on May 24, 2026 at 9:38 am

    @oggiemc

    The “$” represents the actual DOM object that the CKEDITOR class object is pointing to.
    In this case you’re working with the “CKEDITOR.dom.document” class. Find the documentaion here:
    http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dom.document.html

    Your object named “documentWrapper” is a CKEDITOR object. It would have any properties described in the CKEDITOR API docs for that class object. You would also use CKEDITOR methods on it.

    When you work with “documentWrapper.$”, you’re working with a DOM object that’s described in the Document Object Model Specifications. See Specs here:
    http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/

    This object will have the properties described for this object type in the DOM specs. You wouldn’t use CKEDITOR methods on this object, you would use the methods described in the DOM specs for this object type.

    So the “$” is a generic representaion of whichever DOM object (document, head, body, div, span, p, etc.) the CKEDITOR class object is pointing to.

    documentWrapper.someFunction(); would use a CKEDITOR method on a CKEDITOR class object.
    documentWrapper.$.someFunction(); would use a DOM method on a DOM object.

    Joe

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found the following answer to that question: A service opens before you even
Reading a book I have found the following statement: (Object) Behaviors answer either of
I have the following challenge, and I haven't found a good answer. I am
I found the following code to create a tinyurl.com url: http://tinyurl.com/api-create.php?url=http://myurl.com This will automatically
I found the following code somewhere, but I am not understanding the code properly.
Looking at scala's Predef object, which is automatically imported, I found the following gem
I've been looking for an answer to this but haven't found it anywhere. Are
Probably a very simple problem and I have been looking for the answer but
I am looking for a way to optimize the following code, for an open
I've tried looking but I haven't found anything with a definitive answer. I know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.