-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display text delayed after insrting image from file system in textAngular v 1.2.1 #247
Comments
Hi! Could you provide code examples please - the button and its insert file code. This could be related to #219. |
Hi SimeonC, Another problem is paste text and image together from MSWord document to editor. any tips for that. waiting for your answer. |
Hi SimeonC, Imagebutton and display image code which i used to insert image in textAngular v 1.2.2 latest. But the behaviour is weird. On every attempt increses number of times display image. On first attempt selected image get displayed only one time..it#s perfect. On second attempt ma selected image get displayed two times and so on.... I have used below code to insert Font family in v 1.2.2 but not able to select any font. for that changed updateSelectedStyles function in textAngular.js as showed here. Waiting for your reply.
|
Sorry I must have missed your previous comment.
If you're talking about the drag and drop that's because the current functionality is really an example only - you should implement your own way of doing this as using data-uri's can cause issues with saving to databases.
See #124.
Your ImageButton code doesn't resolve the promise that's passed to it, have a look around at the wiki and some other issues there's plenty of examples of how to do asynchronous editor manipulation.
You don't need to change textAngular at all. Your issue will be that the styles are not being allowed by the sanitizer, as I'm guessing whatever 'fontName' does is just adding styles, see here for the part you'll need to edit: https://github.com/fraywing/textAngular/blob/master/src/textAngular-sanitize.js#L451-L489 You should be testing based on what's passed through to the For testing add the attribute |
Hi Simeon,
Thank you very much for your reply.
issue: But got another issue of IE browser. Image upload does not work in IE.
IE browser doesn not support file API. I am only selecting image from file system and trying to display it in textAngular. But somewhere i read file API support IE 11.0 and i also have IE 11.0.
issue: Another problem is paste text and image together from MSWord document to editor. any tips for that.
I will remove strip out all html tag functionality and then try to check whether I can paste both text and image copied together from MS Word.
issue: Imagebutton and display image code which i used to insert image...
your answer: Your ImageButton code doesn't resolve the promise that's passed to it, have a look around at the wiki and some other issues there's plenty of examples of how to do asynchronous editor manipulation.
I did not understand about resolving promise. Can guide me further in detail exactly what i am missing? Do you have some example or link about this issue?
Can I use v 1.2.1 or v1.2.1 in production?
Thanks in advance!
Gesendet: Donnerstag, 14. August 2014 um 01:24 UhrVon: SimeonC notifications@github.comAn: fraywing/textAngular textAngular@noreply.github.comCc: jiyak jignasapk@web.deBetreff: Re: [textAngular] display text delayed after insrting image from file system in textAngular v 1.2.1 (#247) Sorry I must have missed your previous comment. But got another issue of IE browser. Image upload does not work in IE. If you're talking about the drag and drop that's because the current functionality is really an example only - you should implement your own way of doing this as using data-uri's can cause issues with saving to databases. Another problem is paste text and image together from MSWord document to editor. any tips for that. See #124. Imagebutton and display image code which i used to insert image... Your ImageButton code doesn't resolve the promise that's passed to it, have a look around at the wiki and some other issues there's plenty of examples of how to do asynchronous editor manipulation. I have used below code to insert Font family in ... You don't need to change textAngular at all. Your issue will be that the styles are not being allowed by the sanitizer, as I'm guessing whatever 'fontName' does is just adding styles, see here for the part you'll need to edit: https://github.com/fraywing/textAngular/blob/master/src/textAngular-sanitize.js#L451-L489 You should be testing based on what's passed through to the activeState state function and then setting the active option to that. For testing add the attribute ta-unsafe-sanitize to text-angular which will not sanitize the data (Note you don't want to use this in production unless you are absolutely certain your users aren't going to inject bad stuff into your site). — |
I'm moving offices at the moment so I'll do a full response later. Any reason you aren't using v1.2.2? 1.2.1 had some strange bugs in certain conditions. |
Sorry I never got back to you on this. If you didn't figure this out please re-open the issue. |
Hi,
I have added one button in toolbar to insert image from file system and works fine but after inserting image it delays inserting text in editor as i type.
any idea about this?
Thanks in advance!
The text was updated successfully, but these errors were encountered: