Skip to content
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

Content becomes empty when pasting #512

Closed
steftrenson opened this issue Jan 27, 2015 · 2 comments
Closed

Content becomes empty when pasting #512

steftrenson opened this issue Jan 27, 2015 · 2 comments

Comments

@steftrenson
Copy link
Contributor

Hi,

we've found an issue when pasting content from another application into textangular.

<div class="AppContainer" style="width: 1280px;color: rgb(0, 0, 0);">
    <div id="c_base" class="c_base">
        <div id="c_content" class="c_main">
            <div id="pageContent">
                <div id="pageInbox" class="v-Page">
                    <div id="inboxControl0f">
                        <div class="containsYSizerBar" style="height: 849px;width: 1280px;">
                            <div class="ContentRight WithRightRail FullView">
                                <div class="ContentRightInner t_mbgc t_qtc t_urtc" style="color: rgb(68, 68, 68);background-color: rgb(255, 255, 255);">
                                    <div id="inboxControl0fv-ReadMessageContainer" class="v-ReadMessageContainer slideOnResize">
                                        <div class="c-ReadMessage" style="height: 818.03125px;width: 895px;">
                                            <div class="rmMessages ClearBoth" id="ReadMessageScrollableSection">
                                                <div id="readMessagePartControl1604f" class="c-ReadMessagePart ReadMsgContainer HasLayout ClearBoth HideShadows FullPart NoHistory Read RmIc">
                                                    <div class="c-ReadMessagePartBody">
                                                        <div class="readMsgBody">
                                                            <div id="bodyreadMessagePartBodyControl1609f" class="ExternalClass MsgBodyContainer">
                                                                <p>
                                                                    <u>
                                                                        <b>
                                                                            Lorem ipsum
                                                                        </b>
                                                                    </u>
                                                                </p>
                                                                <p>
                                                                    <b>Lorem ipsum</b>
                                                                </p>
                                                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

When pasting the above example into textangular, the text appears to be fine. But when the focus is removed from textangular, the text disappears. We suspect the problem is the many nested div's.

Do you have any idea why this problem occurs?

I'm using v1.3.0-23 on Google Chrome 40.0.2214.91

@SimeonC
Copy link
Collaborator

SimeonC commented Jan 27, 2015

Wow, that's some nested code!
Yes I do know why this occurs - it's the _blankTest function which checks to see if there is any content or not. I had some limiters on it to help when there is a lot of text but it seems that I missed some edge cases like this.

I'll get this patched up and let you know when it's fixed.

@SimeonC
Copy link
Collaborator

SimeonC commented Jan 27, 2015

Ok, should be patched and fixed in v1.3.3 just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants