inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 3, 2015 19:18:38 GMT -8
Add the following code to your Global Header ( how to edit your forum headers & footers) <!-- Restore Pasting Formatted Content in WYSIWYG (Global Header) --> <script> $(document).on('wysiwygcreate', function(event, data){ $($(event.target).data('wysiwyg').editors.visual.editable).off('paste.wyswiwyg') }) </script>
Edit:
As an alternative I've created a simple plugin that places an on/off button on the preview tab so the poster can easily switch between the two modes (download: Paste Ease)
|
|
inherit
220198
0
Sept 7, 2024 5:43:00 GMT -8
gb9454
Life is too short. Don't waste it reading this.
521
April 2015
gb9454
|
Post by gb9454 on Sept 27, 2016 14:28:09 GMT -8
I've added the code to the Global Header and everything works fine. Thank you very much.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 28, 2016 7:02:36 GMT -8
The difference between header/footer code and plugin is that the plugin offers the user a choice
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Jul 11, 2019 4:28:55 GMT -8
First, I LOVE the Paste Ease plugin Chris Second, I want to move the selector switch to a different spot. From here... to here... I appreciate that you left the build editable, and I played around with it enough to know I don't really know what I am doing. I got the switch to appear where I wanted it, but it then showed on both the preview AND BBCode tabs. Help?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 11, 2019 9:16:29 GMT -8
First, I LOVE the Paste Ease plugin Chris Second, I want to move the selector switch to a different spot. From here... to here... I appreciate that you left the build editable, and I played around with it enough to know I don't really know what I am doing. I got the switch to appear where I wanted it, but it then showed on both the preview AND BBCode tabs. Help? The reason it was placed in the controls div with the bbcode buttons is because it is meant to appear only when the preview editor is active (not supposed to applicable to bbcode side). There are two divs housing two editors directly above the preview/bbcode tabs extending up to just above the bbcode buttons and they get hidden/shown when the tabs are clicked, if you have the button outside either of those editor divs (as in your 2nd image) it will then no longer be governed by which editor is active. Is there a particular reason you wanted it moved down there? If it is for having more real estate for bbcode buttons then I'll tell you that the wysiwyg is designed to split the buttons into 2 lines if it exceeds a certain number or requires more width than what is available.
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Jul 11, 2019 9:59:44 GMT -8
First, I LOVE the Paste Ease plugin Chris Second, I want to move the selector switch to a different spot. From here... to here... I appreciate that you left the build editable, and I played around with it enough to know I don't really know what I am doing. I got the switch to appear where I wanted it, but it then showed on both the preview AND BBCode tabs. Help? The reason it was placed in the controls div with the bbcode buttons is because it is meant to appear only when the preview editor is active (not supposed to applicable to bbcode side). There are two divs housing two editors directly above the preview/bbcode tabs extending up to just above the bbcode buttons and they get hidden/shown when the tabs are clicked, if you have the button outside either of those editor divs (as in your 2nd image) it will then no longer be governed by which editor is active. Is there a particular reason you wanted it moved down there? If it is for having more real estate for bbcode buttons then I'll tell you that the wysiwyg is designed to split the buttons into 2 lines if it exceeds a certain number or requires more width than what is available. Purely an aesthetic preference. I feel like it should be workable with an if/else statement to show or hide it based on which editor is active, but either I don't know enough yet to know how exactly to do that, or I don't know enough to know that it can't be done. Goes in search of knowledge...
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 11, 2019 21:50:22 GMT -8
If you add it to the wysiwyg tabs container you could then show/hide based on which tab is active
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Jul 12, 2019 8:15:18 GMT -8
If you add it to the wysiwyg tabs container you could then show/hide based on which tab is active I had worked out the first part by analyzing the build of another plugin, but was trying to wrap it in an 'if statement' to execute the append only if the wysisyg editor was active, but I kept getting something wrong. This works great! Thanks Chris !
|
|