About 12,800,000 results
Open links in new tab
  1. javascript - What is lexical 'this'? - Stack Overflow

    Lexical this simply means that this is looked up in lexical scope. I guess that was actually always the case. Maybe it is easier to understand if we say that an arrow function doesn't have an own this value.

  2. javascript - What is lexical scope? - Stack Overflow

    Jun 26, 2009 · This is called lexical scoping where " functions are executed using the scope chain that was in effect when they were defined " - according to JavaScript Definition Guide. Lexical scope is a …

  3. How to create an initial value in Lexical rich text, then edit it?

    Dec 15, 2023 · I use the Lexical library from Facebook as a WYSIWYG component but I don't know how to create the initial value? After searching for a long time, I took the initiative to throw it on this forum,

  4. Do Python's scoping rule fit the definition of lexical scoping?

    Jul 31, 2018 · Lexical scoping means that if you wrote another function with its own local variable x, and had that function call myfun, the local x would not be used. In the Python code, the x = 1 and x = 10 …

  5. With Lexical, how do I set default initial text? - Stack Overflow

    Apr 23, 2022 · With the Lexical text editor framework, what's the easiest way to initialize the editor in React with a default text string? I could, for instance, create an instance, manually save the JSON …

  6. lexicaljs - How can I integrate @lexical/table into the lexicalEditor ...

    May 24, 2024 · To integrate the @lexical/table plugin into the lexicalEditor from Payload CMS and ensure you have the necessary controls to edit the table structure, you'll need to follow these steps: …

  7. Lexical Scope in JavaScript - Stack Overflow

    Jan 17, 2018 · 5 To understand the lexical scope you need to have a basic understanding of the scope. In javascript, we have classified scope in three types Function scope Block Scope Lexical Scope …

  8. Static (Lexical) Scoping vs Dynamic Scoping (Pseudocode)

    Mar 14, 2014 · Term: Lexical scoping denotes that an entity such as a function resolves its free variables from where the entity is defined. Term: Dynamic scoping denotes that an entity such as a function …

  9. Lexical environment and function scope - Stack Overflow

    Sep 26, 2012 · Lexical Environment is the internal JS engine construct that holds identifier-variable mapping (here identifier refers to the name of variables/functions, and variable is the reference to …

  10. reactjs - Lexicaljs receive editor state json and text content using ...

    Jul 27, 2022 · You don't need to touch any of Lexical's internals for this; a custom hook that reads and "stashes" the editor state into a ref and sets up a debounced callback (via use-debounce here, but …