tinymce / tinymce-blazor

Blazor integration
MIT License
45 stars 13 forks source link

Cursor jump to top #78

Closed kamazheng closed 7 months ago

kamazheng commented 7 months ago

As Title, Net 8 blazor. tinyMce

exalate-issue-sync[bot] commented 7 months ago

Internal Ref: INT-3284

kamazheng commented 7 months ago

I solved this problem. When value changed, the Editor is re-rendered. I override the ShouldRender.

    protected override bool ShouldRender()
    {
        if (_shouldRender)
        {
            return true;
        }
        else
        {
            _shouldRender = true;
            return false;
        }
    }