Changed content input from textarea into div.
This is to ensure that the area will be comaptible with any text editor plugins. I have tested with SimpleMDE and Quill. Both worked completely fine. Bonus: Added description of Quill's English locale.
This commit is contained in:
parent
84aa89a861
commit
743a88c29b
|
@ -29,13 +29,16 @@ echo '<div class="bl-publish-view uk-width-8-10">';
|
||||||
'placeholder'=>$L->g('Title')
|
'placeholder'=>$L->g('Title')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
echo '<div style="padding-top: 10px"></div>';
|
||||||
|
|
||||||
// Content input
|
// Content input
|
||||||
HTML::formTextarea(array(
|
// HTML::formTextarea(array(
|
||||||
'name'=>'content',
|
// 'name'=>'content',
|
||||||
'value'=>$_Page->contentRaw(false),
|
// 'value'=>$_Post->contentRaw(false),
|
||||||
'class'=>'uk-width-1-1 uk-form-large',
|
// 'class'=>'uk-width-1-1 uk-form-large',
|
||||||
'placeholder'=>''
|
// 'placeholder'=>''
|
||||||
));
|
// ));
|
||||||
|
echo '<div id="jscontent" name="content" class="uk-width-1-1 uk-form-large" placeholder="" value="'.$_Post->contentRaw(false).'" style="margin-bottom: 10px"></div>';
|
||||||
|
|
||||||
// Form buttons
|
// Form buttons
|
||||||
echo '<div class="uk-form-row uk-margin-bottom">';
|
echo '<div class="uk-form-row uk-margin-bottom">';
|
||||||
|
|
|
@ -29,13 +29,16 @@ echo '<div class="bl-publish-view uk-width-8-10">';
|
||||||
'placeholder'=>$L->g('Title')
|
'placeholder'=>$L->g('Title')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
echo '<div style="padding-top: 10px"></div>';
|
||||||
|
|
||||||
// Content input
|
// Content input
|
||||||
HTML::formTextarea(array(
|
// HTML::formTextarea(array(
|
||||||
'name'=>'content',
|
// 'name'=>'content',
|
||||||
'value'=>$_Post->contentRaw(false),
|
// 'value'=>$_Post->contentRaw(false),
|
||||||
'class'=>'uk-width-1-1 uk-form-large',
|
// 'class'=>'uk-width-1-1 uk-form-large',
|
||||||
'placeholder'=>''
|
// 'placeholder'=>''
|
||||||
));
|
// ));
|
||||||
|
echo '<div id="jscontent" name="content" class="uk-width-1-1 uk-form-large" placeholder="" value="'.$_Post->contentRaw(false).'" style="margin-bottom: 10px"></div>';
|
||||||
|
|
||||||
// Form buttons
|
// Form buttons
|
||||||
echo '<div class="uk-form-row uk-margin-bottom">
|
echo '<div class="uk-form-row uk-margin-bottom">
|
||||||
|
|
|
@ -23,13 +23,16 @@ echo '<div class="bl-publish-view uk-width-8-10">';
|
||||||
'placeholder'=>$L->g('Title')
|
'placeholder'=>$L->g('Title')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
echo '<div style="padding-top: 10px"></div>';
|
||||||
|
|
||||||
// Content input
|
// Content input
|
||||||
HTML::formTextarea(array(
|
// HTML::formTextarea(array(
|
||||||
'name'=>'content',
|
// 'name'=>'content',
|
||||||
'value'=>'',
|
// 'value'=>'',
|
||||||
'class'=>'uk-width-1-1 uk-form-large',
|
// 'class'=>'uk-width-1-1 uk-form-large',
|
||||||
'placeholder'=>''
|
// 'placeholder'=>''
|
||||||
));
|
// ));
|
||||||
|
echo '<div id="jscontent" name="content" class="uk-width-1-1 uk-form-large" placeholder="" style="margin-bottom: 10px"></div>';
|
||||||
|
|
||||||
// Form buttons
|
// Form buttons
|
||||||
echo '<div class="uk-form-row uk-margin-bottom">
|
echo '<div class="uk-form-row uk-margin-bottom">
|
||||||
|
|
|
@ -23,13 +23,16 @@ echo '<div class="bl-publish-view uk-width-8-10">';
|
||||||
'placeholder'=>$L->g('Title')
|
'placeholder'=>$L->g('Title')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
echo '<div style="padding-top: 10px"></div>';
|
||||||
|
|
||||||
// Content input
|
// Content input
|
||||||
HTML::formTextarea(array(
|
// HTML::formTextarea(array(
|
||||||
'name'=>'content',
|
// 'name'=>'content',
|
||||||
'value'=>'',
|
// 'value'=>'',
|
||||||
'class'=>'uk-width-1-1 uk-form-large',
|
// 'class'=>'uk-width-1-1 uk-form-large',
|
||||||
'placeholder'=>''
|
// 'placeholder'=>''
|
||||||
));
|
// ));
|
||||||
|
echo '<div id="jscontent" name="content" class="uk-width-1-1 uk-form-large" placeholder="" style="margin-bottom: 10px"></div>';
|
||||||
|
|
||||||
// Form buttons
|
// Form buttons
|
||||||
echo '<div class="uk-form-row uk-margin-bottom">
|
echo '<div class="uk-form-row uk-margin-bottom">
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
"plugin-data":
|
"plugin-data":
|
||||||
{
|
{
|
||||||
"name": "Quill",
|
"name": "Quill",
|
||||||
"description": ""
|
"description": "Quill is a free, open source WYSIWYG editor built for the modern web. With its modular architecture and expressive API, it is completely customizable to fit any need."
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue