Coder Social home page Coder Social logo

Comments (6)

fyrkant avatar fyrkant commented on June 14, 2024

Are these two separate issues, no connection between them?

from tinymce-angular.

Twois avatar Twois commented on June 14, 2024

@fyrkant the second issue, comes if we run into the first, first comes always.

Our flow is:

  • The editor hidden,

  • User open the editor

  • Tinymce set the content

  • now we want to add focus to editor (but we cant, because we dont get the event object, what contain the editor, what we could use to set the focus on it)

the second issue means, if we add an event subscribe to editor, than auto focus dose not work.

If we dont add the event subscribe, then auto focus work if we use *ngIf instead fxShow, but in that case the caret appear at front of the text not at the end (because focus was added before the content have been set).

from tinymce-angular.

fyrkant avatar fyrkant commented on June 14, 2024

Seems like it has to be handleEvent($event), so it seems like the readme is incorrect! Weird, I think it used to work with $eventObj before, maybe something changed in Angular? Anyway, try doing handleEvent($event) and see if that works better, I'll update the readme.

from tinymce-angular.

Twois avatar Twois commented on June 14, 2024

Yes, you are right!

from tinymce-angular.

fyrkant avatar fyrkant commented on June 14, 2024

Awesome! Then I can close this issue?

from tinymce-angular.

Twois avatar Twois commented on June 14, 2024

Yes!

from tinymce-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.