Change textareaId to holderId release.1.6.0

This commit is contained in:
Taly Guryn 2017-03-15 17:23:03 +03:00
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

View file

@ -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 :

View file

@ -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 : {

View file

@ -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