question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto focus not working properly, focuses to starting of the content

See original GitHub issue

Autofocus not working properly. it autofocuses the cursor to the starting of the content. is there a way to set the cursor position to end of the content? please watch the gif for better understanding

Minimal code

      const initialContent = `<p>Hi rameez,</p><p>second line</p>`
      this.editor = new Editor({
        content: initialContent,
        autoFocus: true,
        extensions: [
          new Blockquote(),
          new BulletList(),
          new CodeBlock(),
          new HardBreak(),
          new Heading({ levels: [1, 2] }),
          new ListItem(),
          new OrderedList(),
          new TodoItem(),
          new TodoList(),
          new Bold(),
          new Code(),
          new Italic(),
          new Link(),
          new Strike(),
          new Underline(),
          new History(),
          new Placeholder({
            emptyClass: 'is-empty',
            emptyNodeText: 'Write something…',
            showOnlyWhenEditable: true
          })
        ]
      })

issue-tiptap

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rameezcubetcommented, Nov 26, 2019

@jeremyphillipsfti this forked project of tip-tap seems to be a better version https://www.npmjs.com/package/tiptap-vuetify . it works in rapo with vuetify but you can style it for your needs without using vuetify. it also has v-model support by default.

1reaction
rameezcubetcommented, Jun 6, 2019

tried using

this.editor.focus('end')

after the plugin inited but same behaviour. ie focusing on start.

working with "tiptap": "^1.14.0",

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto focus not working properly, focuses to starting of the ...
Autofocus not working properly. it autofocuses the cursor to the starting of the content. is there a way to set the cursor position...
Read more >
The camera doesn't focus using the autofocus (AF) setting
Switch the camera or the lens to Manual Focus (MF). Check the following and try changing to the desired setting. Focus Mode: The...
Read more >
How to do a Camera Focus Test for Autofocus Issues
Determine from your test whether you have back or forward focusing issues. · On your camera, identify the AF micro-adjustments menu option. ·...
Read more >
My Camera Won't Focus: The 8 Most Common Problems
My Camera Won't Focus: The 8 Most Common Problems · 1. The Lens Needs to Be Calibrated · 2. Dirty AF Sensors ·...
Read more >
SOLVED: The auto focus doesn't work - Nikon D3200
If autofocus does not work even with a different lens, there's no easy fix - the problem is almost certainly with the camera...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found