diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/sharednotes/views/components/SharedNotesRichTextEditor.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/sharednotes/views/components/SharedNotesRichTextEditor.mxml
index 4f25f87c84..37386af1fd 100644
--- a/bigbluebutton-client/src/org/bigbluebutton/modules/sharednotes/views/components/SharedNotesRichTextEditor.mxml
+++ b/bigbluebutton-client/src/org/bigbluebutton/modules/sharednotes/views/components/SharedNotesRichTextEditor.mxml
@@ -282,6 +282,9 @@
showToolTips property of the RichTextEditor control to true
.
@@ -758,7 +768,7 @@
{
tf[type] = value;
}
- else if (type == "align" || type == "bullet" || type == "font" || type == "size" || type == "color")
+ else if (type == "align" || type == "bullet" || type == "font" || type == "size" || type == "color" || type == 'kerning')
{
wholeParagraph = true;
// Apply the paragraph styles to the whole paragraph instead of just
@@ -802,6 +812,11 @@
tf[type] = uint(colorPicker.selectedColor);
previousTextFormat[type] = uint(colorPicker.selectedColor);
}
+ else if(type == "kerning")
+ {
+ tf[type] = value;
+ previousTextFormat[type] = value;
+ }
else
{
tf[type] = value;
@@ -1138,15 +1153,19 @@
setTextStyles('font', previousTextFormat.font);
setTextStyles('size', previousTextFormat.size);
setTextStyles('color', previousTextFormat.color);
+ setTextStyles('kerning', true);
}
private function onKeyDown(event:KeyboardEvent):void
{
+
+ trace(event.keyCode);
+ trace(event);
if (textArea.selectionBeginIndex != textArea.selectionEndIndex)
{
var beginIndex:int = textArea.getTextField().getLineIndexOfChar(textArea.selectionBeginIndex);
var endIndex:int = textArea.getTextField().getLineIndexOfChar(textArea.selectionEndIndex);
- if (beginIndex != endIndex)
+ if (beginIndex != endIndex && ((event.keyCode >= 65 && event.keyCode <= 111) || event.keyCode == 32))
{
refreshSelection = true;
}
@@ -1162,6 +1181,13 @@
}
}
+ private function onTextInput( e:TextEvent ):void
+ {
+ if( e.text.length > 0 )
+ refreshSelection = true;
+// trace("text-input");
+ }
+
private function onKeyUp(event:KeyboardEvent):void
{
getTextStyles();
@@ -1171,16 +1197,43 @@
}
}
+ private function onChange ( e:Event ):void
+ {
+ if (pasteCarIndex != -1){
+ getTextStyles();
+ refreshTextStyle();
+// trace("The mouse pointer was either out of the Shared notes window or on the context menu");
+ retPasteCarIndex = textArea.getTextField().caretIndex;
+ textArea.setSelection(pasteCarIndex,pasteCarIndex);
+ getTextStyles();
+ refreshTextStyle();
+ pasteCarIndex = -1;
+ textArea.setSelection(retPasteCarIndex,retPasteCarIndex);
+ }
+// trace("changed-content");
+ }
+
+ //This will happen every time the user activate the ContextMenu and can be used to ensure that mouse Paste will comply to the text formatting rules.
+ private function onRightClick ( e:MouseEvent ):void
+ {
+ pasteCarIndex = textArea.getTextField().caretIndex;
+// trace(pasteCarIndex);
+// trace("roll-out");
+ }
+
+
]]>