| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Again this had something to do with WebKit behavior regarding to the
DOM selection. The thing is that when the selection is saved and
afterwards restored on the same position it is not restored on the same
position. So we hav to determine if we are writing into the quoted text
differently without saving the selection.
|
|
|
|
| |
is not needed
|
|
|
|
| |
process_elements function
|
|
|
|
|
|
|
| |
It can happen sometimes that the text can be written inside the
tabulator wrapper. So when this happens append the text into the plain
text version of the message (in the HTML version it already is) and
don't throw it away.
|
|
|
|
| |
quoted content is deleted
|
|
|
|
|
|
| |
This will ensure that the right node (the block node) will be returned
when the selection is saved inside the bold/italic/underlined text or
inside the anchor.
|
|
|
|
|
| |
Don't insert the unnecessary BR element before the BR element that is
used for wrapping as it will end in unnecessary new line.
|
|
|
|
| |
To avoid the critical warnings printed in the console.
|
|
|
|
|
|
|
| |
When saving the draft don't lose the active selection in the web view.
Also restore the selection when the draft is again opened. Also fix the
situations when the spell check was not activated when the composer was
opened.
|
|
|
|
|
|
| |
the web view
Also preserve the selection (if it is possible) when changing the mode.
|
|
|
|
| |
beginning of the quoted content
|
|
|
|
| |
from converted text
|
|
|
|
|
|
|
|
|
|
| |
Before this change the indent was done with BLOCKQUOTE element. But the
BLOCKQUOTE elements have marings around them set by the HTML engine.
For composer we can override them, but when someone will receive that
HTML message he will have unwanted margin around them. To solve this we
will use the DIV elements instead.
Also for the alignment we switched away from WebKit Editor, but we are
doing it ourselves.
|
|
|
|
|
|
|
|
| |
Heading 1 - 6 block
When the return is pressed in a H1-6 element, WebKit doesn't continue with
the same element, but creates normal paragraph, so we have to unset the bold font,
otherwise the UI will report that we are still writing in bold.
|
|
|
|
| |
6 blocks
|
|
|
|
| |
the HTML mail
|
| |
|
|
|
|
|
| |
Otherwise the spell check is not forced when the message is loaded into
the composer.
|
|
|
|
|
| |
Free some of the DOM variables when they are not needed, before they are
automatically freed when the frame is destroyed
|
|
|
|
|
| |
Do all the changes (remove the ids, classes, ... used internally by
composer) on the BODY clone instead of doing them on real BODY.
|
|
|
|
| |
that was copied from composer
|
|
|
|
|
|
|
| |
use it where possible
Before we were comparing the selection text to look if the selection is
collapsed. Use webkit_dom_range_get_collapsed instead.
|
|
|
|
| |
in the quoted content is on the end of it
|
|
|
|
|
|
|
|
| |
The problem was that we were manipulating with the selection before the
WebKit Editor call (and we hit again problems with selections in
WebKit). So as a fix we reworked how the new line is inserted when the
enter is pressed on empty line in quoted content (and completely avoid
the WebKit Editor call there).
|
| |
|
|
|
|
|
| |
Paragraphs in the quoted content are already wrapped, so we were just
waisting the time there.
|
|
|
|
|
|
| |
Insert the new line characters on empty lines in quoted content. Also
insert the NL when the BR element that is used for wrapping is
processed.
|
|
|
|
|
|
|
| |
Namely "Use the same fonts as other applications", "Standard Font",
"Fixed Width Font", "Highlight quotations with color", "Automatically
insert emoticon images" and "Check spelling while I type". Also remove
unneded properties from EWebView.
|
|
|
|
|
| |
Fix handling on new line characters after the citation end and in epmty
blocks.
|
|
|
|
|
| |
Fix the warnings and also fix the wrong structure of the composer
content when we were pasting multiline content into the composer.
|
|
|
|
| |
the quoted text
|
| |
|
|
|
|
|
| |
We have to insert the text node that marks the end of the block on
right position.
|
|
|
|
|
|
|
| |
We have to manually move the selection after the element with empty
line. Afterwards WebKit creates the new line in the quoted content
correctly, but it duplicates the node with empty line, so we have to
remove it.
|
|
|
|
| |
was inserted into the quoted content
|
|
|
|
|
|
| |
When pasting the content that was copied from the composer, WebKit
restores the selection wrongly, thus is saved wrongly and we have
to fix it.
|
|
|
|
| |
generating the plain text version of the message
|
| |
|
|
|
|
| |
the middle of the quoted text
|
|
|
|
|
|
|
|
|
|
| |
line into the citation
Previously, the whole blockquote that was created after the newly
inserted line was wrapped and quoted. Now just the first block is
processed. Also rewrap the content as when enter was pressed in the
middle of the paragraph the line ends wouldn't match the character
count for word wrap.
|
|
|
|
| |
when it is necessary
|
|
|
|
|
| |
Instead of going through the whole block just insert the quote
characters on the beginning of each line (marker by BR element).
|
|
|
|
|
|
|
|
| |
and use it where possible
Save the end node that we are using to mark the end of the paragraph
into the right place to avoid the busy loop.
Use e_html_editor_selection_save/restore to avoid lose of selection.
|
|
|
|
| |
the backspace is pressed in the beginning of it
|
|
|
|
|
|
|
| |
Temporarily remove the HTML input event listener from the body element to avoid
unwanted modification of the clipboard content. In callback we are
selecting all the content in composer (badically Ctrl + A) that's
modifying the clipboard content.
|
| |
|
|
|
|
|
| |
We have to ask for the previous sibling of element that marks the selection
start instead of the end.
|
|
|
|
| |
generating the plain text version of the message
|
|
|
|
| |
HTML version of the message
|
| |
|
|
|
|
|
|
| |
We have to treat the pasting into the normal and the quoted
content separately. We have to also correctly process the new lines on
the beginning/end of the pasted content to avoid their lose.
|
|
|
|
|
| |
Namely don't lose the new line on the beginning or on the end of
processed content and also on the lines with zero width space character.
|
|
|
|
|
|
|
|
| |
event on body
There are some cases that we want to avoid the call of the callback
(performance reasons and the avoidance of the unwanted modifications of
the composer content).
|
|
|
|
| |
the spell check
|
|
|
|
|
| |
Check if the buffer already contains some data before doing some work
on it.
|
|
|
|
|
|
| |
After commit 8a004f3e we are finally sure that the text that is passed
into e_html_editor_view_set_text_html function has always the HTML
content, so don't try to treat it as plain text.
|
|
|
|
|
|
|
|
|
| |
a HTML content
Code paths for HTML content and plain text content are different. When
we will try to load plain text content as a HTML content we will lose
the new line characters. In the opposite case when HTML content is load
as a plain text at least the whole structure is lost.
|
|
|
|
| |
caret there
|
|
|
|
|
| |
Remove bogus new line character insertion and don't quote the anchor
element if it has caret/selection inside.
|
|
|
|
|
|
| |
anchor elements
And add www to patterns.
|
|
|
|
|
| |
Don't replace them with 8 spaces, but count the right amount of spaces
to relace the tab character with.
|
|
|
|
|
| |
When pasting the text from clipboard into the quoted content in the composer
paste it into it and not into the body.
|
| |
|
| |
|
|
|
|
|
| |
Also insert the BR elements instead of the non-breaking space as a content to
empty paragraphs to avoid unwanted character there.
|
|
|
|
| |
text after the last BR element
|
| |
|
|
|
|
|
|
|
| |
previous sibling
This fixes the situation when the paragraphs with just i.e. anchor were
not properly quoted.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
anchors for links when processing data from convertor
When converting text we want to preserve spaces from original text. For this we
have to use the non-breaking spaces for it as two and more normal spaces is WebKit
replacing with just one. But we want the text from convertor to be wrapped
(non-breaking space is preventing from it) so we will replace 2+ spaces
with non-breaking spaces and leave the space of length one as it is.
Also when we are going through the text from the convertor we will
surround the links with anchor element to make them clickable.
|
|
|
|
| |
paragraph has no children
|
|
|
|
|
|
|
|
| |
After this change when we start writing into quoted content it will
automatically rewrap the paragraph and reinserts the quote marks if the
block format is set to Normal. Also when the caret is in the beginning
of the quoted line and BackSpace is pressed the quoted content is
tooked out from the quote and inserted into body.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
email
Rework how the emoticons are inserted into composer. There were certain
situations where the previous version failed from various reasons like
wrongly saved caret position. Together with previous commits
(preventing the selection markers to be saved into body) this change
fixes the insertion of emoticons.
|
|
|
|
| |
Use them whenever it's possible and remove their duplicates from EHTMLEditorView.
|
|
|
|
|
| |
When we will leave the CSS "display: inline-block" on inline images they will
break the caret move with Home/End keys.
|
|
|
|
| |
Change image's source value immediately after creating the Camel part for it.
|
| |
|
|
|
|
| |
And use them in EHTMLEditorView if possible.
|
| |
|
| |
|
|
|
|
|
|
| |
composer's content
Apply width limits to paragraphs, remove images and replace smileys with its text version.
|
|
|
|
|
|
| |
Replace whitespace with non breaking space ( ) to avoid its lost.
Also when generating the plain text version of final message replace
non breaking space with normal space.
|
|
|
|
|
| |
Just two more places, which are new after a merge of the webkit-composer
branch changes.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Fix the wrong position of caret when in/undenting empty block and don't
lose spell checked words when in/undenting. Also don't insert unnecessary empty
lines into plain text version of message when processing indented block.
|
|
|
|
| |
Do that to avoid unnecessary empty paragraph element.
|
| |
|
|
Merge wip/webkit-composer branch into master.
|