2018-07-09, 02:37 PM
1. how to set it so the editor does not use WYSIWYG but default to source editor?
what i tried
- https://community.mybb.com/thread-194944...pid1228431 but still uses WYSIWYG
- https://community.mybb.com/thread-218253.html this removes the toolbar completely which is not what i want
- https://community.mybb.com/thread-165583...pid1133544 but still uses WYSIWYG
2. quick edit shows garbled text
before hitting quick edit
[attachment=40588]
after hitting quick edit
[attachment=40589]
-------------------- edit ---------------------
for issue #1 i did
add
to member.php
add
to member_register template
add
to
member.lang.php
----------------- edit #2 -------------------------
for my 2nd issue i just remove the use of quick edit
solution from https://community.mybb.com/thread-143432.html
what i tried
- https://community.mybb.com/thread-194944...pid1228431 but still uses WYSIWYG
- https://community.mybb.com/thread-218253.html this removes the toolbar completely which is not what i want
- https://community.mybb.com/thread-165583...pid1133544 but still uses WYSIWYG
2. quick edit shows garbled text
before hitting quick edit
[attachment=40588]
after hitting quick edit
[attachment=40589]
-------------------- edit ---------------------
for issue #1 i did
ALTER TABLE `mybb_users` CHANGE `sourceeditor` `sourceeditor` TINYINT(1) NOT NULL DEFAULT '1';
UPDATE `mybb_users` SET `sourceeditor` = '1' WHERE `sourceeditor` = '0';
add
"sourceeditor" => $mybb->get_input('sourceeditor', MyBB::INPUT_INT),
to member.php
add
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="sourceeditor" id="sourceeditor" value="1" checked/> </td>
<td valign="top"><span class="smalltext"><label for="sourceeditor">{$lang->source_editor}</label></span></td>
</tr>
to member_register template
add
$l['source_editor'] = "Put the editor in source mode by default";
to
member.lang.php
----------------- edit #2 -------------------------
for my 2nd issue i just remove the use of quick edit
solution from https://community.mybb.com/thread-143432.html