Permalink
Browse files

updated the styles dialog to apply to the selected block elements.

  • Loading branch information...
1 parent c19523c commit d517c2d533d0facdbe7faaef447cad2b759e1a4e @ephox-rob ephox-rob committed Jun 8, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 changelog.txt
  2. +1 −1 jscripts/tiny_mce/plugins/style/js/props.js
View
@@ -1,4 +1,5 @@
Version 3.4.3 (2011-??-??)
+ Fixed bug where styles plugin would not apply styles across multiple selected block elements correctly.
Fixed bug where applied styles wouldn't be kept if you pressed enter twice to produce two paragraphs.
Fixed bug where a ghost like caret would appear on Gecko when pressing enter while having a text color applied.
Fixed bug where IE would produce absolute urls if you inserted a image/link and reloaded the page.
@@ -372,7 +372,7 @@ function applyAction() {
generateCSS();
tinyMCEPopup.restoreSelection();
- ed.dom.setAttrib(ed.selection.getNode(), 'style', tinyMCEPopup.editor.dom.serializeStyle(tinyMCEPopup.editor.dom.parseStyle(ce.style.cssText)));
+ ed.dom.setAttrib(ed.selection.getSelectedBlocks(), 'style', tinyMCEPopup.editor.dom.serializeStyle(tinyMCEPopup.editor.dom.parseStyle(ce.style.cssText)));
}
function updateAction() {

0 comments on commit d517c2d

Please sign in to comment.