fixed comments
parent
9be69ef258
commit
3364eb131e
|
@ -1698,20 +1698,6 @@ function Ace2Inner(){
|
||||||
if (selection && !selStart)
|
if (selection && !selStart)
|
||||||
{
|
{
|
||||||
//if (domChanges) dmesg("selection not collected");
|
//if (domChanges) dmesg("selection not collected");
|
||||||
/*
|
|
||||||
* Called from: src/static/js/ace2_inner.js
|
|
||||||
*
|
|
||||||
* Context -
|
|
||||||
* callstack - a bunch of information about the current action
|
|
||||||
* editorInfo - information about the user who is making the change
|
|
||||||
* rep - information about where the change is being made
|
|
||||||
* root - the span element of the current line
|
|
||||||
* point - the starting element where the cursor currently resides
|
|
||||||
* documentAttributeManager - information about attributes in the document
|
|
||||||
* This hook is provided to allow a plugin to turn DOM node selection into [line,char] selection.
|
|
||||||
* The return value should be an array of [line,char]
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
var selStartFromHook = hooks.callAll('aceStartLineAndCharForPoint', {
|
var selStartFromHook = hooks.callAll('aceStartLineAndCharForPoint', {
|
||||||
callstack: currentCallStack,
|
callstack: currentCallStack,
|
||||||
editorInfo: editorInfo,
|
editorInfo: editorInfo,
|
||||||
|
@ -1724,20 +1710,6 @@ function Ace2Inner(){
|
||||||
}
|
}
|
||||||
if (selection && !selEnd)
|
if (selection && !selEnd)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* Called from: src/static/js/ace2_inner.js
|
|
||||||
*
|
|
||||||
* Context -
|
|
||||||
* callstack - a bunch of information about the current action
|
|
||||||
* editorInfo - information about the user who is making the change
|
|
||||||
* rep - information about where the change is being made
|
|
||||||
* root - the span element of the current line
|
|
||||||
* point - the ending element where the cursor currently resides
|
|
||||||
* documentAttributeManager - information about attributes in the document
|
|
||||||
* This hook is provided to allow a plugin to turn DOM node selection into [line,char] selection.
|
|
||||||
* The return value should be an array of [line,char]
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
var selEndFromHook = hooks.callAll('aceEndLineAndCharForPoint', {
|
var selEndFromHook = hooks.callAll('aceEndLineAndCharForPoint', {
|
||||||
callstack: currentCallStack,
|
callstack: currentCallStack,
|
||||||
editorInfo: editorInfo,
|
editorInfo: editorInfo,
|
||||||
|
@ -3615,20 +3587,6 @@ function Ace2Inner(){
|
||||||
|
|
||||||
if (!stopped)
|
if (!stopped)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* Called from: src/static/js/ace2_inner.js
|
|
||||||
*
|
|
||||||
* Context -
|
|
||||||
* callstack - a bunch of information about the current action
|
|
||||||
* editorInfo - information about the user who is making the change
|
|
||||||
* rep - information about where the change is being made
|
|
||||||
* documentAttributeManager - information about attributes in the document
|
|
||||||
* evt - the fired event
|
|
||||||
*
|
|
||||||
* This hook is provided to allow a plugin to handle key events.
|
|
||||||
* The return value should true if you have handled the event.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
var specialHandledInHook = hooks.callAll('aceKeyEvent', {
|
var specialHandledInHook = hooks.callAll('aceKeyEvent', {
|
||||||
callstack: currentCallStack,
|
callstack: currentCallStack,
|
||||||
editorInfo: editorInfo,
|
editorInfo: editorInfo,
|
||||||
|
@ -3636,7 +3594,7 @@ function Ace2Inner(){
|
||||||
documentAttributeManager: documentAttributeManager,
|
documentAttributeManager: documentAttributeManager,
|
||||||
evt:evt
|
evt:evt
|
||||||
});
|
});
|
||||||
specialHandled = (specialHandledInHook&&specialHandledInHook.length>0)?specialHandledInHook[0]:specialHandled;
|
specialHandled = (specialHandledInHook&&specialHandledInHook.length>0)?specialHandledInHook[0]:specialHandled;
|
||||||
if ((!specialHandled) && isTypeForSpecialKey && keyCode == 8)
|
if ((!specialHandled) && isTypeForSpecialKey && keyCode == 8)
|
||||||
{
|
{
|
||||||
// "delete" key; in mozilla, if we're at the beginning of a line, normalize now,
|
// "delete" key; in mozilla, if we're at the beginning of a line, normalize now,
|
||||||
|
|
|
@ -376,19 +376,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
||||||
{
|
{
|
||||||
var txt = dom.nodeValue(node);
|
var txt = dom.nodeValue(node);
|
||||||
var tname = dom.nodeAttr(node.parentNode,"name");
|
var tname = dom.nodeAttr(node.parentNode,"name");
|
||||||
/*
|
|
||||||
* Called from: src/static/js/contentcollector.js
|
|
||||||
*
|
|
||||||
* Context -
|
|
||||||
* cc - the contentcollector object
|
|
||||||
* state - the current state of the change being made
|
|
||||||
* tname - the tag name of this node currently being processed
|
|
||||||
* text - the text for that line
|
|
||||||
* This hook allows you to validate/manipulate the text before it sent to the server side.
|
|
||||||
* The return value should be the validated/manipulated text.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//top.console.log(' nodevalue ',txt);
|
|
||||||
var txtFromHook = hooks.callAll('collectContentLineText', {
|
var txtFromHook = hooks.callAll('collectContentLineText', {
|
||||||
cc: this,
|
cc: this,
|
||||||
state: state,
|
state: state,
|
||||||
|
@ -466,18 +454,6 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
||||||
{
|
{
|
||||||
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
||||||
if (tname == "br")
|
if (tname == "br")
|
||||||
/*
|
|
||||||
* Called from: src/static/js/contentcollector.js
|
|
||||||
*
|
|
||||||
* Context -
|
|
||||||
* cc - the contentcollector object
|
|
||||||
* state - the current state of the change being made
|
|
||||||
* tname - the tag name of this node currently being processed
|
|
||||||
*
|
|
||||||
* This hook is provided to allow whether the br tag should induce a new magic domline or not.
|
|
||||||
* The return value should be either true(break the line) or false.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
{
|
{
|
||||||
this.breakLine = true;
|
this.breakLine = true;
|
||||||
var tvalue = dom.nodeAttr(node, 'value');
|
var tvalue = dom.nodeAttr(node, 'value');
|
||||||
|
|
Loading…
Reference in New Issue