Russ
Well-known member
Scratch that, client had older version of the Responsive style.
If you want, it's possible to resize TinyMCE after it has been loaded, but for this the TinyMCE "oninit" function must be used (see that post here). Unfortunately XenForo doesn't have it. I used it with the MarkItUp editor. What I can do is modify the way I used it to make it compatible with other addons.I think I have found a solution for that, but it requires editing tinymce files.
- Rename js/tinymce/tiny_mce.js to something else, like tiny_mce_original.js
- Copy js/tinymce/tiny_mce_src.js to js/tinymce/tiny_mce.js
- Open js/tinymce/tiny_mce.js, find
Code:// Initialize the API tinymce._init();
- Replace it with
Code:// Initialize the API if (jQuery(window).width() < 700) return; tinymce._init();
public static function editorjs(&$templateText, &$applyCount, $styleId)
{
/*
TinyMCE onInit: only clean way to execute a function AFTER TinyMCE is loaded in the DOM
If another addon needs it, this part might need to merged with its
*/
//Fix editor with on overlay with IE8 step 1
$search[] = "#([ \t]*?)theme:\s*?'xenforo',#i";
$replace[] = "$0\n$1oninit : mceIsReady,";
//Fix editor with on overlay with IE8 step 2
$search[] = "#([ \t]*?)tinyMCE.init\(#i";
$replace[] = "$1function mceIsReady() {
if ($.browser.msie && parseInt($.browser.version, 10) == 8 ){
$('.xenOverlay').find('.mceLayout').removeClass('mceLayout').addClass('mceLayoutSafe');
}
} \n$0";
$templateText = preg_replace($search, $replace, $templateText, -1, $count);
$applyCount = $count;
}
case 'editor_js_setup':
//Check if the TinyMCE function oninit has been already activated with the function name "mceIsReady"
if(!preg_match('#mceIsReady#i', $contents))
{
//Activate the TinyMCE hook "onInit" and link it to the function "mceIsReady"
$search[] = "#([ \t]*?)theme:\s*?'xenforo',#i";
$replace[] = "$0\n$1oninit : mceIsReady,";
//Create the mceIsReady function
$search[] = "#([ \t]*?)tinyMCE.init\(#i";
$replace[] = "
function mceIsReady() {
//Write your Js Code here
} \n$0";
$contents = preg_replace($search, $replace, $contents);
break;
}
//The function mceIsReady() already exists, it then just need to be modified
$search[] = "#function mceIsReady() {\s*#i";
$replace[] = "$0
//Write your Js Code here
$contents = preg_replace($search, $replace, $contents);
break;
Does this have the option for users to switch to the full desktop view? Also can it be used with forumrunner or tapatalk?
Issue with the account details page when viewing on the ipad2
/*Mobile CSS*/
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
{
.accountContent .xenForm {
margin-top: 0;
width: auto !important;
}
}
Nope, doesn't workYou could try this in extra.css
Code:/*Mobile CSS*/ @media only screen and (max-width: 700px), only screen and (max-device-width: 700px) { .accountContent .xenForm { margin-top: 0; width: auto !important; } }
PerfectMaybe...
Code:.xenForm { width: auto !important; }
In Extra.css
Actually, this then breaks the form when using the forum in full screen mode.Maybe...
Code:.xenForm { width: auto !important; }
In Extra.css
That's got it/*Mobile CSS*/
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
{
.xenForm {
width: auto !important;
}
}
No, and it does absolutely require TMS.Arty, is this offered in a developer's level license? Also, does it absolutely require using the TMS addon or could it be adapted to use other frameworks?
Ok, I have disabled the Auto-Style Switcher. So these are the settings I have now:Sure, its possible to fix by changing some properties and/or adding extra rules to responsive_extra.css template.
For some reason I'm seeing your mobile style when visiting your forum instead of main style and no ability to switch to normal style. Please switch to normal style, so I could take a look at layout issues.
.fblbCenterOuter, div.xenCODE_ForceRegister, #wibiyaToolbar, #ticker-wrapper { display: none !important; }
.backDay { background-image: none !important; }
We use essential cookies to make this site work, and optional cookies to enhance your experience.