Commit Graph

91 Commits

Author SHA1 Message Date
0f1416f52f Bug 745946 - Adding emoticon at the beginning of line adds a line break too
When saving the selection start marker on the end of block always put
it before the BR element if presented.
2015-03-10 09:25:06 +01:00
b03c1e043d EHTMLEditorSelection - Return the right font color when is set on body 2015-03-09 07:35:03 +01:00
20f8ae5e06 ETMLEditorSelection - Font color in picker is not changed when moving between different font colors 2015-03-06 09:38:07 +01:00
33e1edd842 EHTMLEditorSelection - Use variable that holds if the range is collapsed 2015-02-27 11:01:14 +01:00
a40e230b76 EHTMLEditorView - When inserting inline image refresh spell check just in current block 2015-02-27 11:01:14 +01:00
88dd1d83c9 Bug 744401 - Many WebKitDom objects leaked for every message viewed
Follow-up fix that fixes the leak of two strings introduced with
previous fix to this bug. Also unref all the used objects from various
lists that WebKit returns after they are used.
2015-02-20 11:16:18 +01:00
567bb678e8 EHTMLEditorSelection - Use create_selection_marker function when saving selection 2015-02-20 08:39:57 +01:00
d50a97ff40 EHTMLEditorSelection - Rework how the monospaced style is set
Don't set the font size if it's not necessary (otherwise the font will
be bigger). Also preserve the selection on text when setting the
monospaced style.
2015-02-20 08:39:57 +01:00
f44326e2fe EHTMLEditorSelection - Don't unref the EHTMLEditorView object when it is used afterwards 2015-02-20 08:39:57 +01:00
e49c913e70 EHTMLEditorSelection - Try to remove the link only when we find anchor 2015-02-20 08:39:57 +01:00
aa197acc32 EHTMLEditorSelection - Spell check is lost after some font style operations 2015-02-20 08:39:57 +01:00
d150071479 EHTMLEditorSelection - After settings for size to some value and back to the default the font is a little bit smaller 2015-02-20 08:39:56 +01:00
d54ad09315 EHTMLEditorSelection - The font color for selected text is wrong
Chack if the returned value is not empty, otherwise set it to black.
2015-02-20 08:39:56 +01:00
3ed6b7f3f6 EHTMLEditorSelection - Don't unref the EHTMLEditorView when it is used afterwards 2015-02-20 08:39:56 +01:00
eccda0aca9 EHTMLEditorSelection - Add missing colon in properties documentation 2015-02-20 08:39:56 +01:00
488329b01c Introduce e_html_editor_selection_set_on_point and use it where possible
This function will move the caret on given coordinates. It uses the
webkit_dom_dom_document_caret_range_from_point. We can finally
drop the e_html_editor_view_get_element_under_mouse_click the was there
for workaround this.
2015-02-12 13:31:06 +01:00
9dad5b7659 Bug 744373 - Delete whole line with selection lefts empty line
The selection end marker was saved to wrong position when the selection
ended in the beginning of the paragraph.
2015-02-12 09:20:49 +01:00
60691aef9e EHTMLEditorSelection - Don't treat links as underlined 2015-02-11 11:15:46 +01:00
fa66952d41 EHTMLEditorView, EHTMLEditorSelection - Use webkit_dom_html_element_insert_adjacent_html
To avoid some unnecessary string allocation/manipulation.
2015-02-11 11:14:08 +01:00
843e07ef0a Bug 744218 - Cannot move with arrow keys from top to bottom
Insert BR that is used for wrapping after the long link just in case
there is some node after it.
2015-02-10 09:40:00 +01:00
53d6e75479 EHTMLEditorSelection - Replace active selection when inserting inline image into composer
Also refresh the spell check as it could be lost during the operation.
2015-02-09 11:07:17 +01:00
07a8582520 EHTMLEditorSelection - Non collapsed selection is collapsed after saving its start and end points
During some operations the selection can be removed. Try to restore it
on the end of saving.
2015-02-09 11:07:16 +01:00
933b9c1109 EHTMLEditorSelection - Correctly wrap after link that does not fit on the line 2015-02-04 15:56:59 +01:00
8ab60b0f86 Bug 743875 - Invalid read on message send 2015-02-04 15:56:59 +01:00
92e6a2972f Rework how the selection inside the qouted content is deleted.
The thing is that normally the quote marks are not selectable by user. But
this caused a lof of problems for WebKit when removing the selection. This will
avoid it as when the delete or backspace key is pressed we will make the quote
marks user selectable so they will act as any other text. On HTML keyup event
callback we will make them again non-selectable.
2015-01-30 09:58:04 +01:00
8040508330 Fix various problems with deleting the selection that ends or starts in the quoted content 2015-01-28 11:14:54 +01:00
cfb1a43548 EHTMLEditorSelection - Save the selection marks to right position when it starts or ends near the quote marks 2015-01-28 11:14:54 +01:00
570f4a76f5 EHTMLEditorSelection - Remove debug output 2015-01-13 16:39:17 +01:00
7bbfe539d1 EHTMLEditorSelection - Avoid the possibility of having multiple selection markers 2015-01-09 13:29:40 +01:00
f12dd92556 Bug 741031 - Replacing misspelled word with keyboard doesn't replace the original word 2014-12-03 15:32:38 +01:00
b8b118bc55 EHTMLEditorSelection - Correctly save selection next to images 2014-12-03 13:59:02 +01:00
5fd00e5a71 EHTMLEditorSelection - Don't leak background color and return default color values when in plain text mode 2014-11-14 13:51:32 +01:00
36d4b06b38 EHTMLEditorSelection - Don't leak font-color 2014-11-14 12:15:33 +01:00
59e2efa774 Share GSettings objects with e_util_ref_settings()
A simple Evolution run and move between all views means creation of
more than 100 GSettings objects, with only a bit more than 10 schemas.
Reusing the objects should have a positive impact on a performance too.
2014-11-13 10:06:04 +01:00
c169cd882c EHTMLEditorSelection - Correctly save the selection markers in quoted content
Before this change the selection markers could be saved next to the
quote character and this could later prevent the selection to be
restored correctly. If the selection could be saved next to the quote
quote character we will save it before the first child of the block
that is quoted.
2014-10-30 15:31:13 +01:00
80fb0ee8f3 EHTMLEditor - Refactor code that sets the selection position into the elements
Code duplication between EHTMLEditorSelection and EHTMLEditorView will
be addressed with WebKit2 port.
2014-10-30 15:31:13 +01:00
5603dd5fa0 EHTMLEditorSelection - Avoid unnecessary wrapping for paragraphs that are wrapped with CSS 2014-10-22 10:45:20 +02:00
eb9860759c EHTMLEditorSelection - Return correct block node for signature
This was preventing the block format change to perform correctly as it
was returning its child and stopping on it.
2014-10-20 11:32:31 +02:00
88411f7ebe EHTMLEditorSelection - Remove unused variables 2014-10-17 09:24:23 +02:00
35a69d4085 EHTMLEditorSelection - Fix change of a block format to another one when the citation is selected 2014-10-16 08:28:59 +02:00
76a6b305ae EHTMLEditorSelection - Correctly wrap long anchors that are on the beginning of the line in plain text mode
We have to insert the BR that is used for wrapping after the link and
not before it.
2014-10-16 08:28:59 +02:00
e6026b276c EHTMLEditorSelection - Block format combo box shows wrong format after unblocking the selection-changed signal callback
Reload the properties when unblocking the selection-changed signal
callback.
2014-10-16 08:28:59 +02:00
f9cf3d322d EHTMLEditorSelection - Fix the "Wrap Lines" action
Base is on blocks inside the selection and not on text that is actually
selected (that behaviour caused unwanted results).
2014-10-06 14:00:31 +02:00
627cb99221 EHTMLEditorSelection - Don't set the alpha channel to 0 (fully transparent) for the default font color 2014-10-02 13:52:20 +02:00
2bda77658a EHTMLEditorSelection - Try to unref the node when it is set 2014-10-02 10:55:32 +02:00
15dbcddb8e EHTMLEditorSelection - Allow text to be wrapped on the dash character 2014-09-19 09:36:18 +02:00
fd226bf07d Replace the webkit_dom_node_get_node_type function with equivalent macros 2014-09-12 10:23:26 +02:00
f7953bea98 EHTMLEditor - Use get_parent_block_node_from_child where possible
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.
2014-09-05 13:51:43 +02:00
dbb776e1c5 EHTMLEditorSelection - Disable the selection-changed callback when restoring the caret position 2014-09-05 13:51:43 +02:00
04b05bf605 EHTMLEditorSelection - Avoid the runtime warning when the caret was saved outside of the body
This could happen during the HTML -> plain text conversion.
2014-09-05 13:51:43 +02:00