lib/utils/editor.js
function(editor, syntax, profile) {
			// most of this code makes sense for Java/Rhino environment
			// because string that comes from Java are not actually JS string
			// but Java String object so the have to be explicitly converted
			// to native string
			profile = profile || editor.getProfileName();
			return  {
				/** @memberOf outputInfo */
				syntax: String(syntax || editor.getSyntax()),
				profile: profile || null,
				content: String(editor.getContent())
			};
		}
function(editor, syntax, profile) {
			// most of this code makes sense for Java/Rhino environment
			// because string that comes from Java are not actually JS string
			// but Java String object so the have to be explicitly converted
			// to native string
			profile = profile || editor.getProfileName();
			return  {
				/** @memberOf outputInfo */
				syntax: String(syntax || editor.getSyntax()),
				profile: profile || null,
				content: String(editor.getContent())
			};
		}
function ( editor , syntax , profile ) { // most of this code makes sense for Java/Rhino environment // because string that comes from Java are not actually JS string // but Java String object so the have to be explicitly converted // to native string profile = profile || editor . getProfileName ( ) ; return { /** @memberOf outputInfo */ syntax : String ( syntax || editor . getSyntax ( ) ) , profile : profile || null , content : String ( editor . getContent ( ) ) } ; }
Sanitizes incoming editor data and provides default values for
output-specific info
@param {IEmmetEditor} editor
@param {String} syntax
@param {String} profile
Sanitizes incoming editor data and provides default values for output - specific info