[HIDE] issue with ckeditor not handling block-level links
Instead of keeping them where they are, ckeditor propagates links to closest inline elements (as pre-HTML5 parsing did), which breaks e.g. product headers. bzr revid: xmo@openerp.com-20130911084305-b5v36wlni620m7r3
This commit is contained in:
@@ -59,7 +59,8 @@ class view(osv.osv):
|
||||
embedded_id = int(el.get('data-oe-id'))
|
||||
# FIXME: type conversions
|
||||
self.pool[el.get('data-oe-model')].write(cr, uid, embedded_id, {
|
||||
el.get('data-oe-field'): el.text
|
||||
# FIXME: ckeditor parser does not follow HTML5 parsing, breaks block-level links
|
||||
el.get('data-oe-field'): el.text_content()
|
||||
}, context=context)
|
||||
|
||||
def to_field_ref(self, cr, uid, el, context=None):
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
<t t-call="website.publish"><t t-set="object" t-value="product"/></t>
|
||||
<div class="ellipsis css_content">
|
||||
<a t-attf-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&category_id=%s' % category_id) or ''}" style="text-decoration: none; display: block;">
|
||||
<h5 t-field="product.name"> </h5>
|
||||
<h5 t-field="product.name"/>
|
||||
<img class="img-rounded" t-att-src="product.img('image_small')"/>
|
||||
</a>
|
||||
<small t-field="product.description_sale"/>
|
||||
|
||||
Reference in New Issue
Block a user