Skip to content

Commit

Permalink
#37 Compatibility with CKEditor (EasyRedmine) Take 3
Browse files Browse the repository at this point in the history
- Contains textcomplete from my pull request https://github.com/yuku-t/jquery-textcomplete/pull/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 d8820b4 commit a04b60b
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>
Loading

0 comments on commit a04b60b

Please sign in to comment.