mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 07:35:48 +01:00
Refactoring (#144)
* codex -> codex.editor * ESlint code style * Code lint * fix inline module 'this' call * fixed toolbox leaf * removed empty spaces * caret module code improved
This commit is contained in:
parent
70df6b20b0
commit
e71a12401a
37 changed files with 1433 additions and 6382 deletions
|
|
@ -12,9 +12,9 @@ var code = (function(code) {
|
|||
* @param {object} JSON with block data
|
||||
* @return {Element} element to append
|
||||
*/
|
||||
code.make = function (data) {
|
||||
var make_ = function (data) {
|
||||
|
||||
var tag = codex.draw.node('CODE', [baseClass], {});
|
||||
var tag = codex.editor.draw.node('CODE', [baseClass], {});
|
||||
|
||||
if (data && data.text) {
|
||||
tag.innerHTML = data.text;
|
||||
|
|
@ -30,7 +30,7 @@ var code = (function(code) {
|
|||
*/
|
||||
code.render = function (data) {
|
||||
|
||||
return codeTool.make(data);
|
||||
return make_(data);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue