summaryrefslogtreecommitdiff
path: root/lib/scripts/edit.js
Commit message (Collapse)AuthorAge
* fixed whitespace errors introduced in #535Andreas Gohr2014-02-14
|
* megre changesSzymon Olewniczak2014-02-07
|
* add preventDefault to toolbar buttonsSzymon Olewniczak2014-02-07
|
* renamed conflicting JavaScript functions FS#2915Andreas Gohr2014-01-17
|
* added aria attributes to edit modeAnika Henke2013-08-01
|
* improved toolbar appearing to load slowlyAnika Henke2012-07-28
|
* Use jQuery UI Dialog for linkwizAdrian Lang2011-09-15
|
* Various JavaScript improvements, JSLint, jQueryAdrian Lang2011-09-13
|
* Revert tmp commitsAdrian Lang2011-09-04
| | | | | This reverts commit ba6c070edd92ca0fc8a6ee85d51769d64a19ee7c. This reverts commit 923510088dda99cb2790b15308593e47369d4f01.
* tmpAdrian Lang2011-09-04
|
* moved keyhandler to the new dw_editor objectAndreas Gohr2011-08-19
|
* Merge branch 'jquery'Michael Hamann2011-05-29
|\ | | | | | | | | | | | | | | Conflicts: lib/scripts/edit.js lib/scripts/locktimer.js Some whitespace (at end of line) cleanup
| * edit.js is jQueryfiedMichal Rezler2011-04-09
| |
| * fixed import for drag.js and started a rewrite of edit.jsMichal Rezler2011-03-30
| |
| * helpers.js was removed - it basically contained functions they are ↵Michal Rezler2011-03-27
| | | | | | | | implemented in jQuery library
* | Remove the security token from the ajax draft/lock calls againMichael Hamann2011-05-25
| | | | | | | | | | | | | | The security token here doesn't improve the security as the other requests that allow you to do the same thing aren't protected and I don't see why locking or draft creation should be subject of XSRF attacks.
* | Check permissions + security token in lock + draft modification FS#2265Michael Hamann2011-05-24
| | | | | | | | | | | | | | This disables lock and draft creation for pages the user can't edit. It additionally adds a security token to the draft creation and deletion request so - at least for logged in users - drafts can't be created, modified or deleted so easily anymore.
* | set cursor to start of textbox when focusing FS#2243Andreas Gohr2011-05-02
| | | | | | | | This works around a new "feature/bug" of Firefox 4.
* | Trap onbeforeunload when event fired (attempt to fix FS#2196)Guy Brand2011-04-17
| |
* | attach textChanged property to window attempt to fix FS#2196Andreas Gohr2011-04-17
|/
* keep drafts on preview FS#2116Andreas Gohr2011-02-06
|
* moved locktimer class to its own fileAndreas Gohr2011-02-06
| | | | I also adjusted the coding style to match our other JS classes
* fixed locktimer/draft saving on new pagesAndreas Gohr2010-08-11
| | | | When creating new pages, no date field is added in the edit form.
* Fixed automatic insertion of listbullets in Opera FS#1877Michael Hamann2010-06-27
| | | | | | | | The keydown event can't be prevented in Opera (see http://www.quirksmode.org/dom/events/keys.html) so this switches back to keypress in Opera (keypress doesn't give the correct key codes in Firefox). Furthermore Opera replaces '\n' by '\r\n' when inserting text, thus the offset for cursor/selection placement was wrong.
* Added missing ";" in edit.jsMichael Hamann2010-06-27
|
* FS#433: Editor now uses onbeforeunload event to capture ANY leaving of itGina Haeussge2010-06-27
| | | | | | | | besides via Save or Preview button. This has been successfully tested in FF, Chrome and IE6/7/8. Opera does not support onbeforeunload, therefore the draft is kept if the user navigates away from the editor. Please test this.
* Fix lock refresh and draft savingAdrian Lang2010-04-26
|
* Do not try to save a draft in alternative editorsAdrian Lang2010-03-26
|
* Rewrite JavaScript change checkAdrian Lang2010-03-26
|
* Various JavaScript fixesAdrian Lang2010-03-15
| | | | | | | | | * Syntax error fixed * lock refresh event is now attached to the whole edit form since it bubbles up and we cannot be sure that the wikitext input exists on all edit forms * Updated findPos(X|Y) * Easier and less error-prone way of getting the section edit button in the highlight mouseover event handler
* Fix textarea scrolling for list editingAdrian Lang2010-02-23
|
* Do not delete content after list on two entersAdrian Lang2010-02-11
|
* Cancel list if the last item is empty (two enter)Adrian Lang2010-01-26
|
* Merge branch 'master' of github.com:splitbrain/dokuwikiAdrian Lang2010-01-26
|\
| * do not use "editor cleverness" on selected textAndreas Gohr2010-01-26
| | | | | | | | | | | | This patch disables all keyhandling (as used for automatic list indention) when some text is selected. This fixes unexpected behavior when selecting some text at the start of a list item and hitting backspace.
* | Support for adding IDs and classes to toolbar buttonsAndreas Gohr2010-01-19
|/ | | | | | Ignore-this: 87db996b332355addacd81b1ac13b0ab darcs-hash:20091125144759-6e07b-601ea98a48d9d3c9dd3508cdb9cde9b86c83a5a3.gz
* Avoid whitespace because of toolbar pickers FS#1841Andreas Gohr2010-01-09
|
* fixed list indention codeAndreas Gohr2009-11-25
| | | | | | | Ignore-this: bd910501ef05d1341c1d67648dc66e32 Firefox doesn't send correct keycodes in onkeypress events darcs-hash:20091125085224-6e07b-ffce34608064ffe62708da5efb3065103ca95eda.gz
* do changecheck JS for default edit form onlyAndreas Gohr2009-11-07
| | | | | | Ignore-this: 27e51f5d17946587742ca29f640baad darcs-hash:20091107152648-7ad00-65c14f833fbb9fd66bffbe676ca659f63a4c8800.gz
* Fixed ssues on the "Page locked" screenAndreas Gohr2009-11-02
| | | | | | Ignore-this: 9d142450d439f26feb5cc0aefb5963da darcs-hash:20091102104643-6e07b-c26aa2fd5f3899e81b0e7e0e45b3c1d7043e8571.gz
* fixed scrolling issue in new list editing FS#1790Andreas Gohr2009-11-02
| | | | | | Ignore-this: 404026c070f3a0764cd3b20363333509 darcs-hash:20091102103712-6e07b-7fa6e59b7cac031e166af4b002bd1c40ba06c777.gz
* added bind() JS function got rid of all eval() callsAndreas Gohr2009-10-18
| | | | | | | | | | | | Ignore-this: 4c7b7b3ebc83ce596e8a7e41d6a88f09 Another round of cleaning up the JavaScript code. A new bind() utility function [1] was introduced and all eval() calls where removed from the toolbar code. [1] See http://www.cosmocode.de/en/blog/gohr/2009-10/15-javascript-fixing-the-closure-scope-in-loops darcs-hash:20091018201710-7ad00-d0bcfa62e28a7a360c8bb8303367a94a9fa78fe1.gz
* hide pickers with margin-left - fixes FS#1781Andreas Gohr2009-10-18
| | | | | | Ignore-this: 51cdec6032a57653543cc2f73f92fa74 darcs-hash:20091018135147-7ad00-7c58d9343250d2d331b820497df6807a71e9b5ef.gz
* Some JS cleanup, keep accesskeys working for hidden pickers FS#1761Andreas Gohr2009-10-17
| | | | | | Ignore-this: 3b6c8568615d24be7115adf8570f56bd darcs-hash:20091017180329-7ad00-9ff4a12c811f1a4c63e473dc6665928fda720850.gz
* fixed event handler attachmentAndreas Gohr2009-09-18
| | | | | | Ignore-this: 9ec0aa658bf73175401e4282663b7f68 darcs-hash:20090918101358-7ad00-28363725efc2c862a855683096f4db816e827f70.gz
* added class for headline pickerAndreas Gohr2009-08-27
| | | | | | Ignore-this: 6aee01f1e872490512480ff8cac566be darcs-hash:20090827142929-6e07b-2aba4d2ac75c870f0c6e4ec903ec3c9ce5863842.gz
* simplify JavaScript loadingAndreas Gohr2009-08-12
| | | | | | | | | | | | | | | | | | | | | Ignore-this: 7637977e042ed8ba7e9e9097f9e9f03f This patch removes the differences between the JavaScript loaded in edit and view modes. * increases the amount of JavaScript that is loaded initially * decreases the number of requests * only one cache for all javascript * all javascript is available in view mode The last point is the most important as it makes a lot of functionality available to plugins working in the view mode. The discussion plugin now can reuse the toolbar code for example. Note: development is part of ICKE 2.0 project http://www.icke-projekt.de darcs-hash:20090812194007-6e07b-c8a71dedf506065a95d8b84b55aafce67810236c.gz
* fixes another IE weirdnes when handling list itemsAndreas Gohr2009-08-05
| | | | | | | | | | | | Ignore-this: d5a0f9671af3607796332a1afcc8de79 Fixes a problem where list mode couldn't easily be left by removing a bullet. Hitting enter would readd a bullet always. note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090805123523-6e07b-46570b10a1422d04ad3c7251323568c712037864.gz
* Some text selection workarounds for MSIEAndreas Gohr2009-08-04
| | | | | | | | | | | | Ignore-this: b4a14bbf96712ec9ce9011e172f2af81 This patch solves some problems with reading the cursor positions and text selection on MSIE. note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090804150501-6e07b-5e3cf60261f5f51906df2d4cf15509e9075757e0.gz
* improved list handlingAndreas Gohr2009-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | Ignore-this: 2e4f3fbfb28917ee66cf3e1925c806d3 This patch adds multiple enhancements to handling lists and indented code blocks in the editor. 1. Pressing enter when in a list item or code block will keep the indention and adds a new list point 2. Pressing space at the start of a list item will indent the item to the next level 3. Pressing bckspace at the start of a list item will outdent the item to the previous level or delete the list bullet when you are at the 1st level already 4. A new type of formatting button called formatln is added. It applies formatting to several lines. It's used for the list buttons currently and makes it possible to convert mutiple lines to a list This enhncement are currently only tested in Firefox are most likely to break IE compatibility. A compatibility patch will be submitted later note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090804095707-7ad00-e565c66087c7121188ad7ece8265d9f64f7e6947.gz