mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 23:55:49 +01:00
Change textareaId to holderId release.1.6.0
This commit is contained in:
parent
291c687f25
commit
53fb12dc7e
7 changed files with 11 additions and 12 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
9
codex.js
9
codex.js
|
|
@ -55,7 +55,7 @@ module.exports = (function (editor) {
|
|||
* Static nodes
|
||||
*/
|
||||
editor.nodes = {
|
||||
textarea : null,
|
||||
holder : null,
|
||||
wrapper : null,
|
||||
toolbar : null,
|
||||
inlineToolbar : {
|
||||
|
|
@ -95,10 +95,9 @@ module.exports = (function (editor) {
|
|||
/**
|
||||
* Initialization
|
||||
* @uses Promise cEditor.core.prepare
|
||||
* @param {} userSettings are :
|
||||
* - tools [],
|
||||
* - textareaId String
|
||||
* ...
|
||||
* @param {Object} userSettings
|
||||
* @param {Array} userSettings.tools list of plugins
|
||||
* @param {String} userSettings.holderId Element's id to append editor
|
||||
*
|
||||
* Load user defined tools
|
||||
* Tools must contain this important objects :
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
</head>
|
||||
<body>
|
||||
|
||||
<textarea name="" id="codex_area" cols="30" rows="10" hidden></textarea>
|
||||
<div id="codex-editor"></div>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
<script>
|
||||
codex.editor.start({
|
||||
textareaId : "codex_area",
|
||||
holderId : "codex-editor",
|
||||
initialBlockPlugin : 'paragraph',
|
||||
hideToolbar: false,
|
||||
tools : {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "codex.editor",
|
||||
"version": "1.5.1",
|
||||
"version": "1.6.0",
|
||||
"description": "Codex Editor. Native JS, based on API and Open Source",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue