mirror of
https://github.com/codex-team/editor.js
synced 2024-06-16 04:35:50 +02:00
APi method renamed
This commit is contained in:
parent
869c65f3da
commit
87b20c0686
|
@ -1827,7 +1827,7 @@ var codex =
|
||||||
* @param [String] htmlString - html content as string
|
* @param [String] htmlString - html content as string
|
||||||
* @return {string} - html content as string
|
* @return {string} - html content as string
|
||||||
*/
|
*/
|
||||||
content.wrapTextIntoParagraphs = function (htmlString) {
|
content.wrapTextWithParagraphs = function (htmlString) {
|
||||||
|
|
||||||
var wrapper = document.createElement('DIV'),
|
var wrapper = document.createElement('DIV'),
|
||||||
newWrapper = document.createElement('DIV'),
|
newWrapper = document.createElement('DIV'),
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -694,7 +694,7 @@ var content = (function(content) {
|
||||||
* @param [String] htmlString - html content as string
|
* @param [String] htmlString - html content as string
|
||||||
* @return {string} - html content as string
|
* @return {string} - html content as string
|
||||||
*/
|
*/
|
||||||
content.wrapTextIntoParagraphs = function(htmlString) {
|
content.wrapTextWithParagraphs = function(htmlString) {
|
||||||
|
|
||||||
var wrapper = document.createElement('DIV'),
|
var wrapper = document.createElement('DIV'),
|
||||||
newWrapper = document.createElement('DIV'),
|
newWrapper = document.createElement('DIV'),
|
||||||
|
|
|
@ -445,7 +445,7 @@ var quote = (function(quote) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Make paragraphs */
|
/** Make paragraphs */
|
||||||
data.text = codex.content.wrapTextIntoParagraphs(data.text);
|
data.text = codex.content.wrapTextWithParagraphs(data.text);
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue