Last change
on this file since 239 was 239, checked in by luc, 9 years ago |
Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | /*
|
---|
2 | Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
|
---|
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
|
---|
4 | */
|
---|
5 |
|
---|
6 | (function()
|
---|
7 | {
|
---|
8 | /**
|
---|
9 | * A lightweight representation of HTML text.
|
---|
10 | * @constructor
|
---|
11 | * @example
|
---|
12 | */
|
---|
13 | CKEDITOR.htmlParser.text = function( value )
|
---|
14 | {
|
---|
15 | /**
|
---|
16 | * The text value.
|
---|
17 | * @type String
|
---|
18 | * @example
|
---|
19 | */
|
---|
20 | this.value = value;
|
---|
21 |
|
---|
22 | /** @private */
|
---|
23 | this._ =
|
---|
24 | {
|
---|
25 | isBlockLike : false
|
---|
26 | };
|
---|
27 | };
|
---|
28 |
|
---|
29 | CKEDITOR.htmlParser.text.prototype =
|
---|
30 | {
|
---|
31 | /**
|
---|
32 | * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
|
---|
33 | * @type Number
|
---|
34 | * @example
|
---|
35 | */
|
---|
36 | type : CKEDITOR.NODE_TEXT,
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
|
---|
40 | * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
|
---|
41 | * @example
|
---|
42 | */
|
---|
43 | writeHtml : function( writer, filter )
|
---|
44 | {
|
---|
45 | var text = this.value;
|
---|
46 |
|
---|
47 | if ( filter && !( text = filter.onText( text, this ) ) )
|
---|
48 | return;
|
---|
49 |
|
---|
50 | writer.text( text );
|
---|
51 | }
|
---|
52 | };
|
---|
53 | })();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.