Skip to content

Commit

Permalink
fixed rules construction by including attribute options
Browse files Browse the repository at this point in the history
  • Loading branch information
delambo committed Feb 6, 2012
1 parent b95afb0 commit 65b3de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tinymce/jscripts/tiny_mce/plugins/ice/editor_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

// Add insert and delete tag/attribute rules.
// Important: keep `id` in attributes list in case `insertTag` is a `span` - tinymce uses temporary spans with ids.
ed.serializer.addRules(self.insertTag + '[id|class|username|userid|cid|title]');
ed.serializer.addRules(self.deleteTag + '[id|class|username|userid|cid|title]');
ed.serializer.addRules(self.insertTag + '[id|class|title|'+self.changeIdAttribute + '|' + self.userIdAttribute + '|' + self.userNameAttribute + '|' + self.timeAttribute + ']');
ed.serializer.addRules(self.deleteTag + '[id|class|title|'+self.changeIdAttribute + '|' + self.userIdAttribute + '|' + self.userNameAttribute + '|' + self.timeAttribute + ']');
// Temporary tags to act as placeholders for deletes.
ed.serializer.addRules('tempdel[data-allocation]');

Expand Down

0 comments on commit 65b3de8

Please sign in to comment.