Skip to content

Commit

Permalink
arkhitech#37 Compatibility with CKEditor (EasyRedmine) Take 3
Browse files Browse the repository at this point in the history
- Contains textcomplete from my pull request yuku/textcomplete#253
 - Basically compatible with the tabs plugin and other quirks
- Also deactivate the overlay which destroys the CK Editor
  • Loading branch information
amenk committed May 26, 2016
1 parent 9938bd7 commit 1984575
Show file tree
Hide file tree
Showing 2 changed files with 1,354 additions and 1,106 deletions.
18 changes: 11 additions & 7 deletions app/views/hooks/redmine_mentions/_edit_mentionable.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
return '<%=Setting.plugin_redmine_mentions['trigger']%>' + name + ' ';
}
}
]).overlay([
{
match: new RegExp(<%=regex_highlight%>),
css: {
'background-color': '#C6D5F3',
}
}
]);

if (typeof CKEDITOR == 'undefined') { // compat problems with CKEditor, we can live without that...
$('#issue_notes,#issue_description').overlay([
{
match: new RegExp(<%=regex_highlight%>),
css: {
'background-color': '#C6D5F3',
}
}
]);
}
</script>

0 comments on commit 1984575

Please sign in to comment.