aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-selection.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace the webkit_dom_node_get_node_type function with equivalent macrosTomas Popela2014-09-121-3/+3
|
* EHTMLEditor - Use get_parent_block_node_from_child where possibleTomas Popela2014-09-051-21/+17
| | | | | | 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.
* EHTMLEditorSelection - Disable the selection-changed callback when restoring ↵Tomas Popela2014-09-051-0/+5
| | | | the caret position
* EHTMLEditorSelection - Avoid the runtime warning when the caret was saved ↵Tomas Popela2014-09-051-1/+2
| | | | | | outside of the body This could happen during the HTML -> plain text conversion.
* Fix handling of the selection in the composer when saving the message draftTomas Popela2014-08-271-33/+37
| | | | | | | 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.
* EHTMLEditorSelection - Simplify some loops and free more of the WebKit DOM ↵Tomas Popela2014-08-141-48/+25
| | | | variables
* EHTMLEditorView - Fix changing of the format from the list to the Address ↵Tomas Popela2014-08-141-7/+6
| | | | and Heading 1 - 6 formats
* EHTMLEditor - Change the way how the Indent/Unindent and Alignment worksTomas Popela2014-08-141-79/+121
| | | | | | | | | | 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.
* EHTMLEditorSelection - Remove just the BR elements that are used for the ↵Tomas Popela2014-08-071-2/+6
| | | | wrapping unless it is forced
* EHTMLEditorSelection - Limit the paragraph minimal width to 5 charactersTomas Popela2014-08-071-3/+6
|
* EHTMLEditorSelection - Fix the unindentation of the listTomas Popela2014-08-071-5/+12
|
* EHTMLEditorSelection - Fix the spell check after settings alignmentTomas Popela2014-08-071-0/+1
|
* Reduce the memory used by DOM variablesTomas Popela2014-08-071-8/+26
| | | | | Free some of the DOM variables when they are not needed, before they are automatically freed when the frame is destroyed
* EHTMLEditorSelection - Introduce e_html_editor_selection_is_collapsed and ↵Tomas Popela2014-07-311-5/+27
| | | | | | | 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.
* EHTMLEditorSelection - Avoid runtime warning when trying to cast DOMText to ↵Tomas Popela2014-07-211-7/+9
| | | | DOMElement
* EHTMLEditorSelection - Optimalize the e_html_editor_selection_restoreTomas Popela2014-07-211-179/+198
| | | | | When the selection was not lost or changed between its save or restore, just remove the selection markers.
* EHTMLEditorSelection - When wrapping the paragraph wrap just the text that ↵Tomas Popela2014-07-211-24/+63
| | | | | | | is after the caret The text before the caret is alredy wrapped so we don't have to rewrap it again.
* EHTMLEditor - Fix e_html_editor_view_force_spell_check_for_current_paragraph ↵Tomas Popela2014-07-211-4/+3
| | | | | | | | 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.
* EHTMLEditorSelection - Avoid runtime warning when there is no selection or ↵Tomas Popela2014-07-151-0/+4
| | | | the whole body element is selected
* EHTMLEditor - Fix indent/undent of the blockTomas Popela2014-07-151-155/+213
|
* Bug 732608 - Composer paste issuesTomas Popela2014-07-151-8/+12
| | | | | | 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.
* EHTMLEditorView - Save selection instead of just caret position when forcing ↵Tomas Popela2014-07-151-12/+4
| | | | the spell check
* EHTMLEditorSelection - Rework how the collapsed selection is savedTomas Popela2014-07-151-27/+133
| | | | Also fixes the leakage of EHTMLEditorView is some code paths.
* Bug 732609 - Cannot decrease indentationTomas Popela2014-07-021-225/+407
| | | | | Don't use WebKit indent/unindent commands. Make our indentation/undentation code (that was used when there was no selection) selection aware.
* EHTMLEditorSelection - Try to move with the caret only when it is possible ↵Tomas Popela2014-07-011-0/+2
| | | | to save it
* EHTMLEditorSelection - Fix wrapping of the anchor elementsTomas Popela2014-06-301-1/+11
| | | | | When there is a whitespace after the link leave it after the link and don't try to wrap before it.
* Bug 731416 - [webkit-composer] Busy-loop when replying to an emailTomas Popela2014-06-301-1/+6
| | | | | | When wrapping lines with really long words (more that is defined in Composer settings) the maximal length for wrap could be less than zero. For proper functionality we have to set it to the right value.
* EHTMLEditorSelection - Correctly find the element's parent node when ↵Tomas Popela2014-06-301-19/+46
| | | | changing the block's format
* EHTMLEditorSelection - When removing the elements use by composer for quoted ↵Tomas Popela2014-06-301-0/+6
| | | | content remove all of them
* EHTMLEditorSelection - Fix detection of the paragraph format inside the ↵Tomas Popela2014-06-301-18/+11
| | | | quoted content
* Bug 731508 - [webkit-composer] no option to paste as text (without formatting)Tomas Popela2014-06-251-0/+16
|
* Bug 732202 - [webkit-composer] Paste scrolls viewTomas Popela2014-06-251-1/+24
| | | | | We have to check if the caret is inside the viewport when we are trying to scroll to it. If it is in the viewport we won't scroll.
* EHTMLEditor - Process text in convertor when pasting plain text from clipboardTomas Popela2014-06-231-6/+3
|
* EHTMLEditor - Make functions that remove quote and wrap elements publicTomas Popela2014-06-191-16/+16
| | | | Use them whenever it's possible and remove their duplicates from EHTMLEditorView.
* EHTMLEditorSelection - Fix caret position when changing block formatTomas Popela2014-06-191-0/+14
|
* EHTMLEditorSelection - Don't try to save selection markers straight into bodyTomas Popela2014-06-191-0/+72
| | | | | | This caused unpredictable behavior in functions, which relies on the position of caret/selection. We won't save the selection markers and handle the situation (no selection markers) in those functions.
* EHTMLEditorSelection - When changing the format of block set EHTMLEditorView ↵Tomas Popela2014-06-191-0/+2
| | | | as changed
* EHTMLEditor - When setting the body background image set it as its base64 ↵Tomas Popela2014-06-181-10/+19
| | | | data instead of uri
* EHTMLEditor: Move remove_node and remove_node_if_empty to EWebViewTomas Popela2014-06-161-29/+0
| | | | And use them in EHTMLEditorView if possible.
* EHTMLEditor - Fix block format change with selection in quoted contentTomas Popela2014-06-131-31/+63
|
* EHTMLEditorSelection - Return the format of list that we determined for ↵Tomas Popela2014-06-131-1/+3
| | | | ordered list
* EHTMLEditor: Set right width to paragraphs that are quotedTomas Popela2014-06-111-4/+3
|
* EHTMLEditor: Fix various bugs in block in/undentTomas Popela2014-06-101-9/+23
| | | | | | 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.
* Bug 731416 - [webkit-composer] Busy-loop when replying to an emailTomas Popela2014-06-101-1/+4
| | | | | Don't try to wrap words that are longer than defined word wrap length, otherwise we will end in busy loop.
* Bug 540362: [webkit-composer] Use webkit for composerTomas Popela2014-06-091-0/+5576
Merge wip/webkit-composer branch into master.