IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 09 Oct 2018, 11:34

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

» Numbering of messages in the topic
by SLGray Mon 04 Dec 2017, 22:40

Recent Tutorials
Top posting users this month
Who is online?
In total there are 17 users online :: 0 Registered, 0 Hidden and 17 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

textarea Problem

View previous topic View next topic Go down

avatar
bodahassan

Gender : Male
Posts : 28
Points : 851
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
View user profile

Postbodahassan on Tue 23 Aug 2016, 14:05

[ltr]Good evening
I have some problems in the editor box when you add it to a page I currently edited
The first problem shows 2 textarea and I don't know the cause of the problem     




I've added this editor and it works fine on this page : http://sd.koutstore.com/h3-page




The second problem: when pressing the switch editor mode button editor disappears






This is the page for preview

http://sd.koutstore.com/h6-page



For you [/ltr]


Last edited by bodahassan on Tue 23 Aug 2016, 18:49; edited 1 time in total
avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4736
Points : 9977
Reputation : 2369
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 23 Aug 2016, 14:13

Hhi @bodahassan,

I believe the problem may be because the editor is hidden by default. What happens when you have the editor displayed by default ?

--------

Ange Tuteur
Tips and TricksContact Me

avatar
bodahassan

Gender : Male
Posts : 28
Points : 851
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
View user profile

Postbodahassan on Tue 23 Aug 2016, 14:16

[ltr]Sorry @Ange Tuteur but I don't understand your question[/ltr]
avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4736
Points : 9977
Reputation : 2369
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 23 Aug 2016, 14:40

On this page the editor is not visible :
http://sd.koutstore.com/h6-page
Once you press next it's visible.


Try making the editor visible without having to hit "next".

I'm assuming the issue of two textareas has to do something with this. But I need to confirm that theory first. Think

--------

Ange Tuteur
Tips and TricksContact Me

avatar
bodahassan

Gender : Male
Posts : 28
Points : 851
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
View user profile

Postbodahassan on Tue 23 Aug 2016, 15:09

I tried hard to fix these problems, but it didn't work with me.
avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4736
Points : 9977
Reputation : 2369
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 23 Aug 2016, 15:59

Find the fieldset tag that the textarea for the editor is in, and add these attributes to it :
Code:
id="message_box" style="display:block !important;"

so you get this :
Code:
<fieldset id="message_box" style="display:block !important;">

After that, find this script :
Code:
                <script>$(function() {$(function() {
                  var instance = $('#text_editor_textarea').sceditor('instance');
             
                  if (instance.inSourceMode()) {
                    instance.toggleSourceMode();
                  }
                 
                })});</script>

and replace it with this :
Code:
                <script>$(function() {$(function() {
                  var instance = $('#text_editor_textarea').sceditor('instance');
             
                  if (instance.inSourceMode()) {
                    instance.toggleSourceMode();
                  }
                 
                  $('#message_box').hide();
                })});</script>

--------

Ange Tuteur
Tips and TricksContact Me

avatar
bodahassan

Gender : Male
Posts : 28
Points : 851
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
View user profile

Postbodahassan on Tue 23 Aug 2016, 18:38

thanks @Ange Tuteur But there is a problem in the Editor's width

avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4736
Points : 9977
Reputation : 2369
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 23 Aug 2016, 18:44

@bodahassan add this CSS to the HTML page or your stylesheet :
Code:
#message_box .sceditor-container iframe, #message_box .sceditor-container textarea {
  width:100% !important;
}

--------

Ange Tuteur
Tips and TricksContact Me

avatar
bodahassan

Gender : Male
Posts : 28
Points : 851
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
View user profile

Postbodahassan on Tue 23 Aug 2016, 18:48

solved >>>  

thanks @Ange Tuteur
avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4736
Points : 9977
Reputation : 2369
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 23 Aug 2016, 18:54

You're welcome ! ^^

Topic archived

Have a good day. Smile

--------

Ange Tuteur
Tips and TricksContact Me

Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum