зачаток
This commit is contained in:
17
3.0/редактор/100.редактор.js
Normal file
17
3.0/редактор/100.редактор.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function Редактор(имяОбласти)
|
||||
{
|
||||
this.создать = function()
|
||||
{
|
||||
this.установитьAce();
|
||||
};
|
||||
|
||||
this.установитьAce = function()
|
||||
{
|
||||
var область = document.getElementById(имяОбласти);
|
||||
this.ace = window.ace.edit(имяОбласти);
|
||||
this.ace.session.setMode("ace/mode/javascript");
|
||||
}
|
||||
|
||||
// Конструктор.
|
||||
this.создать();
|
||||
}
|
||||
Reference in New Issue
Block a user