Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
2c3a76dd
Commit
2c3a76dd
authored
May 31, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_xhtml_style] Do not trigger notifyChange when rendering the editor
parent
9779203f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.appcache.appcache
...tal_skins/erp5_ckeditor/ckeditor.gadget.appcache.appcache
+1
-1
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.js.js
...lateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.js.js
+8
-2
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.appcache.appcache
View file @
2c3a76dd
CACHE MANIFEST
# generated on Mon,
05 Feb 2018 15
:00:00 GMT+0100
# generated on Mon,
31 May 2018 12
:00:00 GMT+0100
CACHE:
renderjs.js
rsvp.js
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.js.js
View file @
2c3a76dd
...
...
@@ -196,6 +196,7 @@
}
else
{
configuration
=
gadget
.
state
.
configuration
;
}
gadget
.
on_change_listener
=
gadget
.
deferNotifyChange
.
bind
(
gadget
);
gadget
.
ckeditor
=
CKEDITOR
.
replace
(
this
.
element
.
querySelector
(
'
textarea
'
),
configuration
...
...
@@ -212,7 +213,7 @@
gadget
.
ckeditor
.
on
(
'
instanceReady
'
,
function
(
event
)
{
event
.
editor
.
execCommand
(
'
maximize
'
);
});
gadget
.
ckeditor
.
on
(
'
change
'
,
gadget
.
deferNotifyChange
.
bind
(
gadget
));
// Let CKEDITOR open inner links when in read-only mode
gadget
.
ckeditor
.
on
(
'
contentDom
'
,
function
()
{
var
editable
=
gadget
.
ckeditor
.
editable
();
...
...
@@ -231,7 +232,12 @@
});
}
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
))
{
this
.
ckeditor
.
setData
(
this
.
state
.
value
);
// Prevent triggering notifyChange method when render is called
// remove the change listener before calling setData and restore it after
this
.
ckeditor
.
removeListener
(
'
change
'
,
this
.
on_change_listener
);
this
.
ckeditor
.
setData
(
this
.
state
.
value
,
{
callback
:
function
()
{
gadget
.
ckeditor
.
on
(
'
change
'
,
gadget
.
on_change_listener
);
}});
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment