Commit Graph
163 Commits
Author SHA1 Message Date
Xavier Morel 128f1e1281 [FIX] odd behavior in cke widgets
in "block-level" widgets (divs), when hitting [return] instead of
adding a newline in the widget a new bit of widget may be added. This
is caused by an incompability between widgets and the enterKey plugin.

Remove enterKey, behavior on [Return] is slightly worse (always
inserts br) but widgets don't get broken.

See https://dev.ckeditor.com/ticket/11326 for issue in upstream.

bzr revid: xmo@openerp.com-20131217153751-7fbwp34o8kac9x94
2013-12-17 16:37:51 +01:00
Xavier Morel 98c4e6b3d4 [IMP] editability criteria for links and images
if a link or image is an editing host (has @contenteditable=true), its
body is editable *but* its attributes should not be considered
editable: if the attributes come from a t-att-*, @contenteditable will
be set on the node itself.

such elements should be ignored by the link & image dialog handling
thing, as editing their attributes has undesirable effects.

bzr revid: xmo@openerp.com-20131216134424-fdqs03i9pidbmaqt
2013-12-16 14:44:24 +01:00
Xavier Morel bf876739fe [REM] undo RTE button by fp demand, apparently unseen & unused by users
bzr revid: xmo@openerp.com-20131213092025-thlltl0xjxq0noyp
2013-12-13 10:20:25 +01:00
Christophe Matthieu 083e88167e [IMP] website: save (button) or discard (link), on left in modal
bzr revid: chm@openerp.com-20131211163305-5qwltn11k2ph179o
2013-12-11 17:33:05 +01:00
Xavier Morel 1049e1c859 [ADD] saving and edition of oddly formatted fields in RTE
bzr revid: xmo@openerp.com-20131205114245-2p57t0z182r8oeyv
2013-12-05 12:42:45 +01:00
Xavier Morel a1ecb6923b [ADD] saving of oddly localized/formatted stuff
bzr revid: xmo@openerp.com-20131205113908-9tr575ejn7hanhi7
2013-12-05 12:39:08 +01:00
Xavier Morel 04045c3699 [IMP] use ckeditor 4.3 final feature to disable widget draghandle entirely instead of relying on CSS
bzr revid: xmo@openerp.com-20131204162805-rikk5kbbx304tol6
2013-12-04 17:28:05 +01:00
Christophe Matthieu b1765e2834 [IMP] website: slip layout
bzr revid: chm@openerp.com-20131204161754-5dq4bt7gghnk878c
2013-12-04 17:17:54 +01:00
Xavier Morel b79e56d1af [IMP] clarity of links edition
According to user tests, users have a hard time finding out how to
edit links. Thus, add same system as image edition (a small button
appearing when hovering the element).

Extract and unify these two to avoid redundancies between handlings as
they are broadly similar (only details such as label, positioning and
size of button relative to the element being hovered really change,
the lifecycle itself is the same).

The main setup still isn't very clean, there might be a better way to
do it.

bzr revid: xmo@openerp.com-20131204105212-u0a49nbvwilgtfst
2013-12-04 11:52:12 +01:00
Fabien Meghazi 31381c1469 [FIX] Disable form submition in editable mode
bzr revid: fme@openerp.com-20131204104225-2s3jp325731mqd92
2013-12-04 11:42:25 +01:00
Fabien Meghazi 49f357da54 [FIX] rte crashes when inserting new lines
We deal with text nodes in this case

bzr revid: fme@openerp.com-20131203161630-f34r1nrqcb4m6jge
2013-12-03 17:16:30 +01:00
Christophe Matthieu abf5c88510 [FIX] website: customize: apply fontawesome to icons
bzr revid: chm@openerp.com-20131203155536-de2htsq0rwv6oepz
2013-12-03 16:55:36 +01:00
Xavier Morel 9d9d3f207e [IMP] cancellation of RTE
* rename Cancel to Discard for clarity (user test)

* add intermediate dialog in case of mis-click, use 'danger' button
  style to clearly indicate this is a destructive operation

bzr revid: xmo@openerp.com-20131203111323-9mx7aazfpsybe718
2013-12-03 12:13:23 +01:00
Xavier Morel d53a289c5b [REM] leftover thing
bzr revid: xmo@openerp.com-20131202113825-c5jbqs17nihip81t
2013-12-02 12:38:25 +01:00
Xavier Morel fdfa7362ac [FIX] image fields getting overly dirty
the addition and removal of the [edit] button on hover would be caught
by the mutation observer and mark the image field as dirty, even when
it had not actually been altered, leaving to spurious save events for
said field.

bzr revid: xmo@openerp.com-20131202113304-xpgu43se5er1ho7y
2013-12-02 12:33:04 +01:00
Christophe Matthieu 9a399dfb94 [FIX] website snippets: quote, quotes slider, parallax
bzr revid: chm@openerp.com-20131129160045-527o2i6unyyymr6e
2013-11-29 17:00:45 +01:00
Xavier Morel 44af6d1e09 [IMP] significantly improve handling of trying to create a new page which already exists
# Through the menu

Rather than output a generic error (500 due to an IntegrityError),
return a templated 409 letting the user either visit the
page-which-already-exists-with-the-name-he'd-picked or open the page
creation dialog again for a second round.

An alternative would be to promote the website.prompt use to
full-blown dialog as a result of selecting "New Page" and handle the
"page already exists" case without even closing the dialog.

# Through the link dialog

Added an RPC call to check if a page already exists (essentially a
cheaper version of opening /page/whatever and checking whether it's a
200 over JSON-RPC), if the page matching the completion term already
exists, do *not* add the choice of creating the page, only provide
completions from existing pages.

bzr revid: xmo@openerp.com-20131126160148-wrk4zvz9istscwa0
2013-11-26 17:01:48 +01:00
Xavier Morel 3731d33852 [FIX] don't perform page creation when no name was provided
bzr revid: xmo@openerp.com-20131126124739-djk6nbifyo087bmz
2013-11-26 13:47:39 +01:00
Xavier Morel 854e453958 [CHG] remove opacity changes on image hover
bzr revid: xmo@openerp.com-20131126092339-7wqx54t8iuvy8e9a
2013-11-26 10:23:39 +01:00
Xavier Morel b05db3495c [IMP] in crawler testing, indicate at which page the failed url was found
bzr revid: xmo@openerp.com-20131125120548-0s7xnhszd48e1u9v
2013-11-25 13:05:48 +01:00
Xavier Morel 4679bfd283 [IMP] lower completion trigger threshold to 1
could be removed entirely, but not sure users would realize there are plenty more urls to look for...

bzr revid: xmo@openerp.com-20131125102228-igkzfsh50y1ytwef
2013-11-25 11:22:28 +01:00
Xavier Morel 52b8226a83 [FIX] on completion error, tell user there are no results
not sure whether and how an error could/should be reported to the
user. For now, it's automatically logged into the console.

bzr revid: xmo@openerp.com-20131125101819-u2akhr16bd5kcsmf
2013-11-25 11:18:19 +01:00
Xavier Morel 53793703de [ADD] dropdown for link style
bzr revid: xmo@openerp.com-20131122151124-1n7cnwldm3ej6wz7
2013-11-22 16:11:24 +01:00
Xavier Morel 264fe7d98b [ADD] small transparency when hovering editable images, so [Edit] button stands out more
bzr revid: xmo@openerp.com-20131122102322-s776o3f80bku3f4a
2013-11-22 11:23:22 +01:00
Xavier Morel 1f2a40e3f7 [FIX] horizontal centering of edition button on images centered with margin: 0 auto in webkit-based browsers
bzr revid: xmo@openerp.com-20131122101154-fsae9uz33smy2ja9
2013-11-22 11:11:54 +01:00
Xavier Morel 233e460b52 [FIX] forgot to tell ckeditor not to load removed bootstrap combo plugin
bzr revid: xmo@openerp.com-20131121160516-a29x498ode34p1ml
2013-11-21 17:05:16 +01:00
Xavier Morel 32147fbffc [REM] bootstrap link configuration combo, it has served its testing purposes
bzr revid: xmo@openerp.com-20131121154501-vrs26caromm6ebgb
2013-11-21 16:45:01 +01:00
Xavier Morel fee8cb0fff [FIX] reimplement [Edit] button on images
Button implementation turned out to be crap:

* Didn't work at all in Firefox (!)

* Unreliable in webkit, some types of image selection wouldn't
  correctly activate the button

->

* changed RTEImageDialog to take an (optional) image element, used as
  the "source element" if provided. This allows greater reliability
  for events which may leave selection in debatable or variable
  (across browsers) state

* setup and teardown button on hover, using selection triggered issues
  with oe_overlay thing where e.g. the first click on the button would
  work but the second one would not (it'd be intercepted by the
  overlay as far as I can tell).

  This also saves a click for user, they will see the [Edit] button
  immediately when putting the cursor over the image.

bzr revid: xmo@openerp.com-20131121110748-s5e2ne3etpzwi2a6
2013-11-21 12:07:48 +01:00
Christophe Matthieu 6b10be15b2 [IMP] website snippet: add group for styles snippets, add custom picture with style snippet, mouseover and mouseout preview, fix dark css class in demo data
bzr revid: chm@openerp.com-20131120115250-etqv5ofqguze0zsj
2013-11-20 12:52:50 +01:00
Xavier Morel fd02a389e9 [REM] apparently unnecessary icons
bzr revid: xmo@openerp.com-20131120091147-4vshzojq6mwhvice
2013-11-20 10:11:47 +01:00
Christophe Matthieu 5e7a8a957c [IMP] website editor: better rendering of the popover when failure write raise by except_osv.
bzr revid: chm@openerp.com-20131119143259-vm7o3vq79358h56w
2013-11-19 15:32:59 +01:00
Christophe Matthieu 8054696a43 [FIX] website editor for IE
bzr revid: chm@openerp.com-20131119135704-rnva3skoh55h3eti
2013-11-19 14:57:04 +01:00
Xavier Morel b6be7b87c6 [IMP] add img-responsive to images generated via dialog
avoids having the image end up larger than its container

bzr revid: xmo@openerp.com-20131119131113-9010p4tubk1yz10s
2013-11-19 14:11:13 +01:00
Xavier Morel ba2ee4e287 [FIX] cleanup image edition button on editor save
bzr revid: xmo@openerp.com-20131119125520-qpts34qbx1oofdc1
2013-11-19 13:55:20 +01:00
Fabien Meghazi bb0badbf40 [IMP] Simplify js_link2post event
bzr revid: fme@openerp.com-20131119110612-uc4j1l6xexrt9fyt
2013-11-19 12:06:12 +01:00
Xavier Morel 5723b1588e [MERGE] from trunk
bzr revid: xmo@openerp.com-20131119102552-f8d03meddylwseyr
2013-11-19 11:25:52 +01:00
Fabien Meghazi 1b77b76460 [ADD] breadcrumb return_url to Website
bzr revid: fme@openerp.com-20131118124958-j1t85mywopoawtk7
2013-11-18 13:49:58 +01:00
Xavier Morel 780c35598d [MERGE] from trunk
bzr revid: xmo@openerp.com-20131115132903-epi3321e4uxjqtn2
2013-11-15 14:29:03 +01:00
Fabien Pinckaers 85265aefb9 [IMP] layout of website.prompt
bzr revid: fp@openerp.com-20131114212856-ff42xtka5dlv8c8c
2013-11-14 22:28:56 +01:00
Fabien Meghazi 95f63af992 [IMP] Improved openerp.website.prompt() and write documentation
Yeah ! You read me ! I (fme) wrote documentation !

Yeaaaaaaaaaaaaah !!!

bzr revid: fme@openerp.com-20131114093214-isjmwwbzsj3ahr61
2013-11-14 10:32:14 +01:00
Fabien Meghazi 7598bcdb98 [ADD] Content menu links splitted per modules
TODO: website.prompt() should be finished for Add a blog post link

Added @id=editable_scripts_hook in layout template so modules can easly add *.editor.js files

bzr revid: fme@openerp.com-20131113171438-3l0wo08ta5vsulq3
2013-11-13 18:14:38 +01:00
Xavier Morel ca0537ad4a [FIX] menu entry dialog to work correctly with select2 page picker
bzr revid: xmo@openerp.com-20131113155704-7l0d87va0860h7dx
2013-11-13 16:57:04 +01:00
Xavier Morel 837aa436e5 [IMP] abort FAYT requests when the next one comes in
bzr revid: xmo@openerp.com-20131113151832-ym4hvpyhn5t7ocxs
2013-11-13 16:18:32 +01:00
Xavier Morel d15a6f426d [IMP] replace selection list of existing CMS pages by FAYT via select2
bzr revid: xmo@openerp.com-20131113143934-je7dusgzj15f7li0
2013-11-13 15:39:34 +01:00
Xavier Morel 122ddb8e31 [IMP] rename list_pages to enumerate_pages, add a search method and a basic non-contiguous substring match
bzr revid: xmo@openerp.com-20131113101824-uqatvqokkzhvi0ei
2013-11-13 11:18:24 +01:00
Fabien Pinckaers 854916ce54 [IMP] Reorder menu
bzr revid: fp@openerp.com-20131109150613-scepw4gdw7my4s76
2013-11-09 16:06:13 +01:00
Fabien Pinckaers bc62ae21b6 [IMP] Remove Bounce effet
bzr revid: fp@openerp.com-20131109142751-cj9334s8avd4rzve
2013-11-09 15:27:51 +01:00
Fabien Pinckaers 14146a7b6c [IMP] Show Sign In as an option
bzr revid: fp@openerp.com-20131109083550-pa2u3dqvynz0qrb1
2013-11-09 09:35:50 +01:00
Xavier Morel ea65573b48 [ADD] image edition button v0
bzr revid: xmo@openerp.com-20131107092018-66tae9nu1kcft21g
2013-11-07 10:20:18 +01:00
Xavier Morel 20899155c5 [IMP] during image upload, disable save button
hide it and replace it with a button telling the user what we're
currently doing (uploading the image).

Leave the possibility of discarding the whole thing and going away
though.

bzr revid: xmo@openerp.com-20131106152412-eb283vghb18aafyr
2013-11-06 16:24:12 +01:00