Skip to content

Conversation

@davidediak
Copy link

@davidediak davidediak requested a review from a team as a code owner February 7, 2024 13:36
@davidediak davidediak requested review from TheSpyder, ltrouton and spocke and removed request for a team February 7, 2024 13:36
Copy link
Contributor

@danoaky-tiny danoaky-tiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice to have a test for this in FormControlTest.ts. Thanks for the fix!

@davidediak
Copy link
Author

Sure, I fixed your tests and also added a test related to my fix.
Please feel free to contribute to the tests if needed, I'm not really familiar with your internal testing lib.

@danoaky-tiny
Copy link
Contributor

Ah thank you. #367 also has a fix for this failing test. Once that's merged I'll rereview

@constanzaccg
Copy link

Hi! Is there any plan to incorporate this fix soon? Thank you

@danoaky-tiny
Copy link
Contributor

@davidediak This needs a merge from main. Just to do with the tests, won't need much change from you.

@davidediak
Copy link
Author

@danoaky-tiny sure, done.

@EkimChau
Copy link

EkimChau commented May 8, 2024

Hello davidediak,

Thank you for your code contribution, in order for Tiny Inc to accept your code, we will need permission to use your code contribution, this can be done through the Tiny Contributor License Agreement (Tiny CLA). Please contact legal@tiny.cloud to sign the Tiny CLA agreement.

@davidediak
Copy link
Author

@EkimChau you have my permission to use my code, given the fact that I spent time fixing the bug and did open a PR.
I have no intention of proving your company with my personal data.

@TheSpyder
Copy link
Member

This is clearly stated in the contributing guide. We don't have an automated system for it at the moment.

Note that contributions will require signing of our Contributor License Agreement.

The CLA protects us, our open-source community and our customers from the distribution of unauthorised code. It's non-negotiable, sorry.

@davidediak
Copy link
Author

Btw guys, you can copy-paste my changes and open another PR, I won't mind.
I won't give away any personal data, sorry.

@carlosmintfan
Copy link

@davidediak I‘ll use your PR if it looks good to me once I fork the Angular integration for my HugeRTE fork of TinyMCE.

Copy link

@joe-baudisch joe-baudisch Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const cursor = this._editor.selection.getBookmark(3) as any
if (cursor['start'] && cursor['start'].startsWith('text()')) {
// do nothing because the cursor initially jumps back to first line with 'text()'
// while pasting in text from outside; moving to this bookmark after set content
// creates this cursor jump which should be avoided;
// if you paste in text from inside the editor or write text by keyboard
// the cursor starts with a paragraph tag created by TMCE like
// 'p[element_index]/text()[0]'
} else {
this._editor.setContent(isNullOrUndefined(value) ? '' : value);
try {
this._editor.selection.moveToBookmark(cursor);
} catch (e) {
/* ignore */
}
}

bpedersen2 pushed a commit to mlz-cisx/eln-frontend that referenced this pull request Oct 7, 2025
https: //github.com/tinymce/tinymce-angular/pull/371/commits/3c7808e44637cf63977adea04f5eebbfb189db83
Change-Id: I18e9bd812bb5f9e99765c2d8d9bb5fad199956f4
Reviewed-on: https://forge.frm2.tum.de/review/c/mlz/eln/frontend/+/36616
Reviewed-by: Wojian Wang <wojian.wang@frm2.tum.de>
Tested-by: Wojian Wang <wojian.wang@frm2.tum.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants