Skip to content

Commit

Permalink
Change default paragraph separator to 'p'
Browse files Browse the repository at this point in the history
  • Loading branch information
Faycel Benyoussa committed Nov 18, 2022
1 parent 5848a81 commit 144f89f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ouvrages/react-native-pell-rich-editor",
"description": "React Native Rich Editor",
"version": "1.8.9",
"version": "1.8.10",
"main": "src/index.js",
"license": "MIT",
"private": false,
Expand Down
4 changes: 2 additions & 2 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function createHTML(options = {}) {
autoCapitalize = 'off',
enterKeyHint = '',
autoCorrect = false,
defaultParagraphSeparator = 'div',
defaultParagraphSeparator = 'p',
// When first gaining focus, the cursor moves to the end of the text
firstFocusEnd = true,
useContainer = true,
Expand Down Expand Up @@ -431,7 +431,7 @@ function createHTML(options = {}) {
var init = function init(settings) {
var paragraphSeparator = settings[defaultParagraphSeparatorString];
var content = settings.element.content = createElement('div');
var content = settings.element.content = createElement('p');
content.id = 'content';
content.contentEditable = true;
content.spellcheck = false;
Expand Down

0 comments on commit 144f89f

Please sign in to comment.